Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

deref_data

Description

Returns the type that will be returned by dereferencing the data property referenced by an associative iterator.

Synposis
template<
    typename I
    >
struct deref_data
{
    typedef unspecified type;
};

Table 1.22. Parameters

Parameter

Requirement

Description

I

Model of Associative Iterator

Operation's argument


Expression Semantics
result_of::deref_data<I>::type

Return type: Any type

Semantics: Returns the result of dereferencing the data property referenced by an associative iterator of type I.

Header
#include <boosta/fusion/iterator/deref_data.hpp>
#include <boost/fusion/include/deref_data.hpp>
Example
typedef map<pair<float,int> > map;
typedef result_of::begin<vec>::type first;

BOOST_MPL_ASSERT((boost::is_same<result_of::deref_data<first>::type, int&>));

PrevUpHomeNext