Location:
e32std.h
Link against:
TLinearOrder<class T>
Supported from 5.0
A templated class which packages a function that determines the order of two objects of a given class type.
A TLinearOrder<T>
object is constructed and
passed as a parameter to member functions of the array classes
RArray<T>
and RPointerArray<T>
.
Defined in TLinearOrder
:
TLinearOrder()
TLinearOrder(TInt(*anOrder)(const T&,const T&));
C++ constructor taking the specified function as an argument.
The specified function should implement an algorithm that
determines the order of two class T
type objects. It should
return:
zero, if the two objects are equal
a negative value, if the first object is less than the second.
a positive value, if the first object is greater than the second.
|