Logo Search packages:      
Sourcecode: djvulibre version File versions  Download package

int GListTemplate< GP< TYPE > , GPBase >::search ( const GP< TYPE > &  elt,
GPosition pos 
) const [inline, inherited]

Searches the list for a given element. If position pos# is a valid position for this list, the search starts at the specified position. If position pos# is not a valid position, the search starts at the beginning of the list. The list elements are sequentially compared with elt# using TYPE::operator==(const TYPE&)#. As soon as a list element is equal to elt#, function search# sets argument pos# with the position of this list element and returns 1. If however the search reaches the end of the list, function search# returns 0 and leaves pos# unchanged.

Definition at line 955 of file GContainer.h.

    { return GListImpl<TI>::search((const TI&)elt, pos); }


Generated by  Doxygen 1.6.0   Back to index