Public Member Functions | |
EqualityComparerAdapter () | |
Creates adapter not using any comparator. More... | |
EqualityComparerAdapter (const SharedPtr< IEqualityComparer< T >> &comparator) | |
void | set_EqualityComparator (const SharedPtr< IEqualityComparer< T >> &comparator) |
bool | operator() (const T &x, const T &y) const |
Adapter making it possible using IEqualityComparer with STL-styled collections and algorithms. Uses IEqualityComparer, if set. If not set, uses operator ==, Object::Equals or T::Equals, whichever is available.
T | Type being compared. |
|
inline |
Creates adapter not using any comparator.
|
inline |
Creates adapter with given comparator.
comparator | Comparator to use. |
|
inline |
Compares two objects.
x | LHS operand. |
y | RHS operand. |
|
inline |
Sets comparator.
comparator | Comparator to use. |