...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Returns the type that will be returned by dereferencing the data property referenced by an associative iterator.
template< typename I > struct deref_data { typedef unspecified type; };
Table 1.22. Parameters
Parameter |
Requirement |
Description |
---|---|---|
|
Model of Associative Iterator |
Operation's argument |
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
.
#include <boosta/fusion/iterator/deref_data.hpp> #include <boost/fusion/include/deref_data.hpp>
typedefmap
<pair
<float,int> > map; typedefresult_of::begin
<vec>::type first; BOOST_MPL_ASSERT((boost::is_same<result_of::deref_data
<first>::type, int&>));