mbo::pair_first_func_t< _Tpair, _Tfunc > Struct Template Reference

pair.first function adapter More...

#include <for_all.h>

Inheritance diagram for mbo::pair_first_func_t< _Tpair, _Tfunc >:

Inheritance graph
{std::unary_function\<_Tpair, _Tfunc\>\n||}
[legend]
Collaboration diagram for mbo::pair_first_func_t< _Tpair, _Tfunc >:

Collaboration graph
{std::unary_function\<_Tpair, _Tfunc\>\n||}
[legend]

List of all members.

Public Types

typedef _Tpair pair_t
typedef _Tfunc func_t

Public Member Functions

 pair_first_func_t (func_t func)
result_type operator() (pair_t &arg)

Protected Attributes

func_t m_func


Detailed Description

template<typename _Tpair, typename _Tfunc>
struct mbo::pair_first_func_t< _Tpair, _Tfunc >

pair.first function adapter

Definition at line 411 of file for_all.h.


Member Typedef Documentation

template<typename _Tpair, typename _Tfunc>
typedef _Tpair mbo::pair_first_func_t< _Tpair, _Tfunc >::pair_t

Definition at line 415 of file for_all.h.

template<typename _Tpair, typename _Tfunc>
typedef _Tfunc mbo::pair_first_func_t< _Tpair, _Tfunc >::func_t

Definition at line 416 of file for_all.h.


Constructor & Destructor Documentation

template<typename _Tpair, typename _Tfunc>
mbo::pair_first_func_t< _Tpair, _Tfunc >::pair_first_func_t ( func_t  func  )  [inline]

Definition at line 418 of file for_all.h.

00419         : m_func(func)
00420     {
00421     }


Member Function Documentation

template<typename _Tpair, typename _Tfunc>
result_type mbo::pair_first_func_t< _Tpair, _Tfunc >::operator() ( pair_t arg  )  [inline]

Definition at line 423 of file for_all.h.

References mbo::pair_first_func_t< _Tpair, _Tfunc >::m_func.

00424     {
00425         return m_func(arg.first);
00426     }


Member Data Documentation

template<typename _Tpair, typename _Tfunc>
func_t mbo::pair_first_func_t< _Tpair, _Tfunc >::m_func [protected]

Definition at line 430 of file for_all.h.

Referenced by mbo::pair_first_func_t< _Tpair, _Tfunc >::operator()().


The documentation for this struct was generated from the following file:
  Hosted on code.google.com  
© Marcus Börger
Generated on Fri Jan 18 21:21:10 2008 for MBO-lib by doxygen 1.5.4