utilmm::select_1st< Pair > Struct Template Reference

First pair attribute access. More...

#include <utils.hh>

List of all members.

Public Member Functions

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

Detailed Description

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

First pair attribute access.

This functor gives a const access to the first 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_2nd

Definition at line 50 of file install/include/utilmm/functional/utils.hh.


Member Function Documentation

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

call operator

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

Definition at line 57 of file utilmm/functional/utils.hh.

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

call operator

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

Definition at line 57 of file install/include/utilmm/functional/utils.hh.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


utilmm
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Fri Jan 11 10:07:42 2013