CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
comparison.h
1
3
4#ifndef _aspose_system_comparison_h_
5#define _aspose_system_comparison_h_
6
7#include "system/multicast_delegate.h"
8
9namespace System {
91template <typename T>
92class Comparison : public System::MulticastDelegate<int(T, T)>
93{
94public:
98 template<typename Y>
99 Comparison(Y arg) : System::MulticastDelegate<int(T, T)>(arg) { }
100
105 bool operator()(T a, T b) { return MulticastDelegate<int(T, T)>::invoke(a, b) < 0; }
106};
107}
108
109#endif
Represents a pointer to the method that compares two objects of the same type. This type should be al...
Definition: comparison.h:93
Comparison(Y arg)
Constructs an instance of Comparison delegate that represent the pointer to the specified invokable e...
Definition: comparison.h:99
bool operator()(T a, T b)
Invokes the invokable object pointed to by the current object.
Definition: comparison.h:105
Definition: db_command.h:9