X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=libs%2Ffusion%2Fdoc%2Fhtml%2Ffusion%2Fcontainer%2Fgeneration%2Fmetafunctions%2Fmake_map.html;h=9a91a0ffd43358a462ac365529cd211b3bd977c1;hb=08c1e93fa36a49f49325a07fe91ff92c964c2b6c;hp=410f8a1c4cdabf7dea0147a35d5f968c606259b3;hpb=bb4dd8289b351fae6b55e303f189127a394a1edd;p=platform%2Fupstream%2Fboost.git diff --git a/libs/fusion/doc/html/fusion/container/generation/metafunctions/make_map.html b/libs/fusion/doc/html/fusion/container/generation/metafunctions/make_map.html index 410f8a1..9a91a0f 100644 --- a/libs/fusion/doc/html/fusion/container/generation/metafunctions/make_map.html +++ b/libs/fusion/doc/html/fusion/container/generation/metafunctions/make_map.html @@ -3,8 +3,8 @@ make_map - - + + @@ -28,14 +28,21 @@
- Description + Description

Returns the result type of make_map.

+

+ The implementation depends on the support of variadic templates. +

+

+ When variadic templates are not supported, make_map is a metafunction + of the form: +

- Synopsis + Synopsis
template <
     typename K0, typename K1,... typename KN
@@ -52,9 +59,25 @@
           

#define FUSION_MAX_MAP_SIZE 20
 
+

+ When variadic templates are supported, make_map is a metafunction class + of the form: +

- Parameters + Synopsis +
+
template <
+    typename K0, typename K1,... typename KN>
+struct make_map
+{
+    struct apply<
+    typename T0, typename T1,... typename TN>
+};
+
+
+ + Parameters
@@ -121,14 +144,19 @@
- - Expression + + Expression Semantics
-
resulf_of::make_map<K0, K1,... KN, T0, T1,... TN>::type;
+
#if !defined(BOOST_FUSION_HAS_VARIADIC_MAP)
+resulf_of::make_map<K0, K1,... KN, T0, T1,... TN>::type;
+#else
+resulf_of::make_map<K0, K1,... KN>::apply<T0, T1,... TN>::type;
+#endif
 

- Return type: result_of::make_map<K0, K0,... KN, T0, T1,... TN>::type + Return type: result_of::make_map<K0, K0,... KN, T0, T1,... TN>::type when variadic templates are not + supported, or result_of::make_map<K0, K0,... KN>::apply<T0, T1,... TN>::type when variadic templates are supported.

Semantics: A map with fusion::pair elements where the second_type is converted following @@ -140,21 +168,25 @@ key types.

- - Header + + Header
#include <boost/fusion/container/generation/make_map.hpp>
 #include <boost/fusion/include/make_map.hpp>
 
- - Example + + Example
-
result_of::make_map<int, double, char, double>::type
+
#if !defined(BOOST_FUSION_HAS_VARIADIC_MAP)
+result_of::make_map<int, double, char, double>::type
+#else
+result_of::make_map<int, double>::apply<char, double>::type
+#endif
 
- - See + + See also