Represents a pointer to the method that compares two objects of the same type. This type should be allocated on stack and passed to functions by value or by reference. Never use System::SmartPtr class to manage objects of this type.
More...
Inherits System::MulticastDelegate< int(T, T)>.
|
template<typename Y > |
| Comparison (Y arg) |
| Constructs an instance of Comparison delegate that represent the pointer to the specified invokable entitiy. More...
|
|
bool | operator() (T a, T b) |
| Invokes the invokable object pointed to by the current object. More...
|
|
template<typename T>
class System::Comparison< T >
Represents a pointer to the method that compares two objects of the same type. This type should be allocated on stack and passed to functions by value or by reference. Never use System::SmartPtr class to manage objects of this type.
- Template Parameters
-
T | The type of the objects the method compares |
◆ Comparison()
template<typename T >
template<typename Y >
Constructs an instance of Comparison delegate that represent the pointer to the specified invokable entitiy.
- Template Parameters
-
Y | The type of the invokable entity to be pointed to by the Comparison object being created |
- Parameters
-
arg | An invokable entity to be pointed to by the Comparison object being created |
◆ operator()()
Invokes the invokable object pointed to by the current object.
- Parameters
-
a | The first comparand |
b | The second comparand |
- Returns
- True if
a
is less than b
, otherwise - true