stlab.adobe.com Adobe Systems Incorporated

Member Data Accessor
[Functional]

Classes

class  mem_data_t< T, R >
 Adaptor similar to boost::mem_fn() used by boost::bind. More...

Functions

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

Detailed Description

This library provides access to member data, similar to boost::mem_fn() except it returns a reference (or const reference for a const object) to the data.


Function Documentation

adobe::mem_data_t< T, R > mem_data ( R T::*  member )

Returns a function object, which given an object of type T, will return the value of the member pointed to by member.

Parameters:
memberpointer to member data.
Returns:
An adobe::mem_data_t function object.

Definition at line 426 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