Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



How to find elements

A search can be made for elements based on the value of a key. A search can be done in one of two ways:

Both functions indicate the success or failure of the search and, if successful, supply the position of the element within the array.

Note that where an array has elements with duplicate keys:

The elements of arrays can be sorted. This is done by the Sort() member function for CArrayFixFlat<class T>, CArrayFixSeg<class T>, CArrayVarFlat<class T> and CArrayVarSeg<class T> arrays but by the SortL() member function for the CArrayPakFlat<class T> array.