stlab.adobe.com Adobe Systems Incorporated

#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 393 of file functional.hpp.

Constructor & Destructor Documentation

◆ mem_data_t() [1/2]

Definition at line 395 of file functional.hpp.

◆ mem_data_t() [2/2]

mem_data_t ( R T::*  member)
explicit

Definition at line 397 of file functional.hpp.

Member Function Documentation

◆ operator()() [1/2]

R& operator() ( T &  x) const

Definition at line 401 of file functional.hpp.

◆ operator()() [2/2]

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