theplu::yat::utility::PairSecond< Pair > Struct Template Reference

Functor that return std::pair.second. More...

#include <yat/utility/stl_utility.h>

List of all members.

Public Types

typedef boost::mpl::if_
< typename boost::is_const
< Pair >::type, typename
boost::add_const< typename
Pair::second_type >::type
&, typename Pair::second_type & >
::type 
result_type
typedef Pair & argument_type

Public Member Functions

result_type operator() (argument_type p) const


Detailed Description

template<class Pair>
struct theplu::yat::utility::PairSecond< Pair >

Functor that return std::pair.second.

See also:
pair_second_iterator
Since:
New in yat 0.5

Member Typedef Documentation

template<class Pair >
typedef Pair& theplu::yat::utility::PairSecond< Pair >::argument_type

The argument type is Pair&.

template<class Pair >
typedef boost::mpl::if_< typename boost::is_const<Pair>::type, typename boost::add_const<typename Pair::second_type>::type&, typename Pair::second_type&>::type theplu::yat::utility::PairSecond< Pair >::result_type

The type returned is Pair::second_type& with the exception when Pair is const and Pair::second_type is non-const, in which case const Pair::first_type& is return type.


Member Function Documentation

template<class Pair >
result_type theplu::yat::utility::PairSecond< Pair >::operator() ( argument_type  p  )  const [inline]

Returns:
p.first


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

Generated on Mon Nov 7 02:25:53 2011 for yat by  doxygen 1.5.9