|
CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
|
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. More...
#include <iequality_comparer.h>
Public Member Functions | |
| EqualityComparerAdapter () | |
| Creates adapter not using any comparator. More... | |
| EqualityComparerAdapter (const SharedPtr< IEqualityComparer< T > > &comparator) | |
| Creates adapter with given comparator. More... | |
| void | set_EqualityComparator (const SharedPtr< IEqualityComparer< T > > &comparator) |
| Sets comparator. More... | |
| bool | operator() (const T &x, const T &y) const |
| Compares two objects. More... | |
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. |