Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: e32std.h
Link against:

Class TIdentityRelation

TIdentityRelation<class T>

Support

Supported from 5.0

Description

A templated class which packages a function that determines whether two objects of a given class type match.

A TIdentityRelation<T> object is constructed and passed as a parameter to member functions of the array classes RArray<T> and RPointerArray<T>.

Defined in TIdentityRelation:
TIdentityRelation()


Construction


TIdentityRelation()

TIdentityRelation(TBool(*anIdentity)(const T&,const T&));

Description

Constructs the object taking the specified function as an argument.

The specified function should implement an algorithm for determining whether two class T type objects match. It should return:

Parameters

TBool(*anIdentity)(const T&,const T&)

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