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

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

#include <functional.h>

List of all members.

Public Member Functions

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


Detailed Description

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

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

Definition at line 174 of file functional.h.


Constructor & Destructor Documentation

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

This is a very lightweight class.

The constructor does nothing.

Definition at line 181 of file functional.h.


Member Function Documentation

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

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

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

Definition at line 207 of file functional.h.

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

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

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

Definition at line 193 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