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

Second pair attribute access. More...

#include <utilmm/functional/utils.hh>

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

Public Member Functions

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

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
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_1st

Member Function Documentation

◆ operator()()

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

call operator

Parameters
pThe pair
Returns
A const reference to p.second

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

Generated on Wed Oct 17 2018 09:34:19 for Util-- by doxygen 1.8.13
SourceForge.net Project Page