Util--  1.1
Public Member Functions | List of all members
utilmm::select_1st< Pair > Struct Template Reference

First pair attribute access. More...

#include <utilmm/functional/utils.hh>

Inheritance diagram for utilmm::select_1st< Pair >:
Inheritance graph
[legend]
Collaboration diagram for utilmm::select_1st< Pair >:
Collaboration graph
[legend]

Public Member Functions

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

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
Pairthe complete type of the std::pair we want to pass as argument
Author
Frédéric Py fpy@l.nosp@m.aas..nosp@m.fr
See also
select_2nd

Member Function Documentation

◆ operator()()

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

call operator

Parameters
pThe pair
Returns
A const reference to p.first

The documentation for this struct was generated from the following file:

Generated on Mon Oct 22 2018 18:39:28 for Util-- by doxygen 1.8.13
SourceForge.net Project Page