vtf-logo

Functor: Select


Classes

struct  ads::Select1st< Pair >
 Functor for selecting the first element of a pair. More...
struct  ads::Select2nd< Pair >
 Functor for selecting the second element of a pair. More...
struct  ads::SelectElement< Sequence, N >
 Functor for selecting an element of a sequence. More...

Functions

template<class Pair>
Select1st< Pair > ads::select_1st ()
 Convenience function for constructing a Select1st.
template<class Pair>
Select2nd< Pair > ads::select_2nd ()
 Convenience function for constructing a Select2nd.
template<class Sequence, int N>
SelectElement< Sequence, N > ads::select_element ()
 Convenience function for constructing a SelectElement.

Detailed Description

The SGI extensions provide functors for selecting the first and second elements of a std::pair. This functionality is implemented here to avoid dependence on the extensions.

The SelectElement functor selects the n_th element of a sequence.


Generated on Fri Aug 24 12:55:37 2007 for Algorithms and Data Structures Package by  doxygen 1.4.7