...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 result type of as_map
.
template <typename Sequence> struct as_map;
Parameter |
Requirement |
Description |
---|---|---|
|
A fusion Sequence |
The sequence to convert. |
result_of::as_map<Sequence>::type;
Return type: A map
with same elements as the
input sequence, Sequence
.
Semantics: Convert a fusion sequence,
Sequence
, to a map
.
Precondition: The elements of the sequence
are assumed to be __fusion_pair__s. There may be no duplicate fusion::pair
key types.
#include <boost/fusion/container/map/convert.hpp> #include <boost/fusion/include/as_map.hpp>
result_of::as_map<vector
<fusion::pair
<int, char> ,fusion::pair
<double, std::string> > >::type