Public Member Functions | |
EqualityComparerHashAdapter () | |
Creates adapter with no comparator to use. More... | |
EqualityComparerHashAdapter (const SharedPtr< IEqualityComparer< T >> &comparator) | |
void | set_EqualityComparator (const SharedPtr< IEqualityComparer< T >> &comparator) |
std::size_t | operator() (const T &x) const |
Adapter to use IEqualityComparer for hashing. Uses comparator object, if set; otherwise, uses available hash method selected using DictionaryHashSelector struct.
Hashed | type. |
|
inline |
Creates adapter with no comparator to use.
|
inline |
Creates adapter with given comparator to use.
comparator | Comparator to use. |
|
inline |
Calculates hash value.
x | Hashed object. |
|
inline |
Sets comparator to use.
comparator | Comparator to use. |