...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 map_tie
.
template <typename K0, typename K1,... typename KN, typename D0, typename D1,... typename DN> struct map_tie;
For C++11 compilers, the variadic function interface has no upper bound.
For C++03 compilers, the variadic function accepts 0
to FUSION_MAX_MAP_SIZE
elements, where FUSION_MAX_MAP_SIZE
is a user definable predefined maximum that defaults to 10
. You may define the preprocessor constant
FUSION_MAX_MAP_SIZE
before
including any Fusion header to change the default. Example:
#define FUSION_MAX_MAP_SIZE 20
Parameter |
Requirement |
Description |
---|---|---|
|
Any type |
The key types for |
|
Any type |
The arguments types for |
result_of::map_tie<K0, K1,... KN, D0, D1,... DN>::type;
Return type: map
<pair
<K0, D0&>, pair
<K1,
D1&>,... pair
<KN,
DN&> >
Semantics: Create a map
of references from D0, D1,... DN
with keys K0, K1,... KN
#include <boost/fusion/container/generation/map_tie.hpp> #include <boost/fusion/include/map_tie.hpp>
struct int_key; struct double_key; ... result_of::map_tie<int_key, double_key, int, double>::type