EqualityComparerAdapter
EqualityComparerAdapter struct
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.
template<class T>class EqualityComparerAdapter
Template parameters
Parameter | Description |
---|---|
T | Type being compared. |
Methods
Method | Description |
---|---|
EqualityComparerAdapter() | Creates adapter not using any comparator. |
EqualityComparerAdapter(const SharedPtr<IEqualityComparer<T>>&) | Creates adapter with given comparator. |
bool operator()(const T&, const T&) const | Compares two objects. |
void set_EqualityComparator(const SharedPtr<IEqualityComparer<T>>&) | Sets comparator. |
See Also
- Namespace System::Collections::Generic
- Library Aspose.Slides