dlr::common::ExtractSecondFunctor< Type0, Type1 > Class Template Reference

Functor template for extracting the second element of a std::pair. More...

#include <functional.h>

List of all members.

Public Member Functions

 ExtractSecondFunctor ()
 This is a very lightweight class.
Type1 operator() (const std::pair< Type0, Type1 > &argument)
 This version of the application operator returns the value of the second component of its argument.
Type1 & operator() (std::pair< Type0, Type1 > &argument)
 This version of the application operator returns a reference to the second component of its argument.


Detailed Description

template<class Type0, class Type1>
class dlr::common::ExtractSecondFunctor< Type0, Type1 >

Functor template for extracting the second element of a std::pair.

Definition at line 218 of file functional.h.


Constructor & Destructor Documentation

template<class Type0 , class Type1 >
dlr::common::ExtractSecondFunctor< Type0, Type1 >::ExtractSecondFunctor (  )  [inline]

This is a very lightweight class.

The constructor does nothing.

Definition at line 225 of file functional.h.


Member Function Documentation

template<class Type0 , class Type1 >
Type1& dlr::common::ExtractSecondFunctor< Type0, Type1 >::operator() ( std::pair< Type0, Type1 > &  argument  )  [inline]

This version of the application operator returns a reference to the second component of its argument.

Parameters:
argument This argument is a std::pair instance.
Returns:
The return value is a reference to argument.second.

Definition at line 251 of file functional.h.

template<class Type0 , class Type1 >
Type1 dlr::common::ExtractSecondFunctor< Type0, Type1 >::operator() ( const std::pair< Type0, Type1 > &  argument  )  [inline]

This version of the application operator returns the value of the second component of its argument.

Parameters:
argument This argument is a std::pair instance.
Returns:
The return value is a copy of argument.second.

Definition at line 237 of file functional.h.


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

Generated on Tue Nov 24 23:57:56 2009 for dlrCommon Utility Library by  doxygen 1.5.8