FRAMES NO FRAMES

Macro ILODEFAULTCOMPARATOR

Definition file: ilsolver/iimmulti.h
ILODEFAULTCOMPARATOR(IloObject, o1, o2)
Macro for defining a default comparator.

This macro can be used for a default comparator for a particular object type. The macro creates a special template function which delivers a comparator which will compare objects of a given type. The macro takes three arguments, the first being the object type and the next two being the names of the two objects to compare. The body of the comparator should be written in exactly the same way as for ILOCOMPARATOR0, where a true value is returned if and only if the first parameter is considered smaller than the second. Note that as this comparison is considered to be innate to the object type, no additional parameters can be specified. The generated template function can be called by classes that need to compare objects (normally for equality). For example, see the IloExplicitEvaluator class.

See Also: