#ifndef MOJO_PUBLIC_CPP_BINDINGS_EQUALS_TRAITS_H_
#define MOJO_PUBLIC_CPP_BINDINGS_EQUALS_TRAITS_H_
#include <optional>
#include <type_traits>
#include <utility>
#include <vector>
#include "base/containers/flat_map.h"
#include "mojo/public/cpp/bindings/lib/template_util.h"
namespace mojo {
template <typename T, typename SFINAE = void>
struct HasEqualsMethod : std::false_type { … };
HasEqualsMethod<T, std::void_t<decltype(std::declval<const T &>().Equals(std::declval<const T &>()))>>;
template <typename T>
bool Equals(const T& a, const T& b);
template <typename T>
struct EqualsTraits { … };
EqualsTraits<std::optional<T>>;
EqualsTraits<std::vector<T>>;
EqualsTraits<base::flat_map<K, V>>;
template <typename T>
bool Equals(const T& a, const T& b) { … }
}
#endif