Functor: Select

Classes

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

Functions

template<class Pair >
Select1st< Pair > select_1st ()
 Convenience function for constructing a Select1st.
template<class Pair >
Select2nd< Pair > select_2nd ()
 Convenience function for constructing a Select2nd.
template<class Sequence , int N>
SelectElement< Sequence, N > 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 Thu Jun 30 02:14:51 2016 for Algorithms and Data Structures Package by  doxygen 1.6.3