utilmm::select_2nd< Pair > Struct Template Reference

Second pair attribute access. More...

#include <utilmm/functional/utils.hh>

List of all members.

Public Member Functions

Pair::second_type const & operator() (Pair const &p) const
 call operator


Detailed Description

template<class Pair>
struct utilmm::select_2nd< Pair >

Second pair attribute access.

This functor gives a const access to the second attribute of a std::pair

Parameters:
Pair the complete type of the std::pair we want to pass as argument
Author:
Frédéric Py <fpy@laas.fr>
See also:
select_1st

Member Function Documentation

template<class Pair>
Pair::second_type const& utilmm::select_2nd< Pair >::operator() ( Pair const &  p  )  const [inline]

call operator

Parameters:
p The pair
Returns:
A const reference to p.second


The documentation for this struct was generated from the following file:
Generated on Tue Feb 19 10:51:01 2008 for Util-- by doxygen 1.5.3
SourceForge.net Project Page