Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: e32std.h
Link against:

Class TLinearOrder

TLinearOrder<class T>

Support

Supported from 5.0

Description

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()


Construction


TLinearOrder()

TLinearOrder(TInt(*anOrder)(const T&,const T&));

Description

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:

Parameters

TInt(*anOrder)(const T&, const T&)

A pointer to a function that takes constant references to two class T objects and returns a TInt value