Adobe Source Libraries 1.49.0
A collection of C++ libraries.
Loading...
Searching...
No Matches

Adaptor similar to boost::mem_fn() used by std::bind. More...

#include <functional.hpp>

Public Member Functions

 mem_data_t ()
 mem_data_t (R T::*member)
R & operator() (T &x) const
const R & operator() (const T &x) const

Detailed Description

template<class T, typename R>
class adobe::mem_data_t< T, R >

Unlike boost::mem_fn() this is of use when you want to use a pointer to a member and have it return a reference.

Todo
(sparent) Propose this addition back to Boost.

Definition at line 281 of file functional.hpp.

Constructor & Destructor Documentation

◆ mem_data_t() [1/2]

template<class T, typename R>
mem_data_t ( )

Definition at line 282 of file functional.hpp.

◆ mem_data_t() [2/2]

template<class T, typename R>
mem_data_t ( R T::* member)
explicit

Definition at line 284 of file functional.hpp.

Member Function Documentation

◆ operator()() [1/2]

template<class T, typename R>
R & operator() ( T & x) const

Definition at line 286 of file functional.hpp.

◆ operator()() [2/2]

template<class T, typename R>
const R & operator() ( const T & x) const

Definition at line 288 of file functional.hpp.