...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Deferences the data property associated with the element referenced by an associative iterator.
template<
typename I
>
typename result_of::deref_data
<I>::type deref(I const& i);
Table 1.8. Parameters
Parameter |
Requirement |
Description |
---|---|---|
|
Model of Associative Iterator |
Operation's argument |
deref_data
(i);
Return type: result_of::deref_data
<I>::type
Semantics: Dereferences the data property
associated with the element referenced by an associative iterator i
.
#include <boost/fusion/iterator/deref_data.hpp> #include <boost/fusion/include/deref_data.hpp>
typedefmap
<pair
<float,int&> > map; int i(0); map m(1.0f,i); assert(deref_data
(begin
(m)) == 0); assert(&(deref_data
(begin
(m))) == &i);