Adobe Systems Incorporated

mem_data_t< T, R > Class Template Reference
[Miscellaneous Functional OperatorsMember Data Accessor]

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

#include <functional.hpp>

List of all members.

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.

(sparent) Propose this addition back to Boost.

Definition at line 393 of file functional.hpp.

Constructor & Destructor Documentation

mem_data_t (  )

Definition at line 395 of file functional.hpp.

mem_data_t ( R T::*  member ) [explicit]

Definition at line 397 of file functional.hpp.

Member Function Documentation

R& operator() ( T &  x ) const

Definition at line 401 of file functional.hpp.

const R& operator() ( const T &  x ) const

Definition at line 404 of file functional.hpp.

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google