ReactOS  0.4.13-dev-100-gc8611ae
const_mem_fun_t< _Ret, _Tp > Class Template Reference

#include <_function_adaptors.h>

Inheritance diagram for const_mem_fun_t< _Ret, _Tp >:
Collaboration diagram for const_mem_fun_t< _Ret, _Tp >:

Public Member Functions

 const_mem_fun_t (__fun_type __pf)
 
_Ret operator() (const _Tp *__p) const
 

Private Types

typedef _Ret(_Tp::* __fun_type) (void) const
 

Private Attributes

__fun_type _M_f
 

Additional Inherited Members

- Public Types inherited from unary_function< const _Tp *, _Ret >
typedef const _Tp * argument_type
 
typedef _Ret result_type
 
- Protected Member Functions inherited from unary_function< const _Tp *, _Ret >
 ~unary_function ()
 

Detailed Description

template<class _Ret, class _Tp>
class const_mem_fun_t< _Ret, _Tp >

Definition at line 509 of file _function_adaptors.h.

Member Typedef Documentation

◆ __fun_type

template<class _Ret , class _Tp >
typedef _Ret(_Tp::* const_mem_fun_t< _Ret, _Tp >::__fun_type) (void) const
private

Definition at line 510 of file _function_adaptors.h.

Constructor & Destructor Documentation

◆ const_mem_fun_t()

template<class _Ret , class _Tp >
const_mem_fun_t< _Ret, _Tp >::const_mem_fun_t ( __fun_type  __pf)
inlineexplicit

Definition at line 512 of file _function_adaptors.h.

512 : _M_f(__pf) {}

Member Function Documentation

◆ operator()()

template<class _Ret , class _Tp >
_Ret const_mem_fun_t< _Ret, _Tp >::operator() ( const _Tp *  __p) const
inline

Definition at line 513 of file _function_adaptors.h.

513 { return (__p->*_M_f)(); }

Member Data Documentation

◆ _M_f

template<class _Ret , class _Tp >
__fun_type const_mem_fun_t< _Ret, _Tp >::_M_f
private

Definition at line 515 of file _function_adaptors.h.

Referenced by const_mem_fun_t< _Ret, _Tp >::operator()().


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