array.h File Reference


Classes

class  dbAnyArray
 Base class for all arrays. More...
class  dbArray
 Template for arrays. More...

Functions

template<class T>
int index (dbArray< T > const &a, T value)
 Search for first accurance of specified value in the array.
template<class T>
int rindex (dbArray< T > const &a, T value)
 Search for last accurance of specified value in the array.


Function Documentation

int index ( dbArray< T > const &  a,
value 
) [inline]

Search for first accurance of specified value in the array.

Parameters:
value searched value
Returns:
index of first element with such value or -1 if there are not such element

int rindex ( dbArray< T > const &  a,
value 
) [inline]

Search for last accurance of specified value in the array.

Parameters:
value searched value
Returns:
index of last element with such value or -1 if there are not such element


Online Library Docs

sipXecs home page

Version 4.2.1-018930 2010-07-31T01:13:23 build16 abuild