CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
|
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...
#include <comparison.h>
Inherits System::MulticastDelegate< int(T, T)>.
Public Member Functions | |
template<typename Y > | |
Comparison (Y arg) | |
Constructs an instance of Comparison delegate that represent the pointer to the specified invokable entity. More... | |
bool | operator() (T a, T b) |
Invokes the invokable object pointed to by the current object. More... | |
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.
T | The type of the objects the method compares |
Constructs an instance of Comparison delegate that represent the pointer to the specified invokable entity.
Y | The type of the invokable entity to be pointed to by the Comparison object being created |
arg | An invokable entity to be pointed to by the Comparison object being created |
|
inline |
Invokes the invokable object pointed to by the current object.
a | The first comparand |
b | The second comparand |
a
is less than b
, otherwise - true