summaryrefslogtreecommitdiff
path: root/boost/fusion/adapted/std_tuple/tag_of.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/fusion/adapted/std_tuple/tag_of.hpp')
-rw-r--r--boost/fusion/adapted/std_tuple/tag_of.hpp52
1 files changed, 52 insertions, 0 deletions
diff --git a/boost/fusion/adapted/std_tuple/tag_of.hpp b/boost/fusion/adapted/std_tuple/tag_of.hpp
new file mode 100644
index 0000000000..10e2e18142
--- /dev/null
+++ b/boost/fusion/adapted/std_tuple/tag_of.hpp
@@ -0,0 +1,52 @@
+/*=============================================================================
+ Copyright (c) 2001-2011 Joel de Guzman
+
+ Distributed under the Boost Software License, Version 1.0. (See accompanying
+ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+==============================================================================*/
+#if !defined(BOOST_FUSION_TAG_OF_09112011_1842)
+#define BOOST_FUSION_TAG_OF_09112011_1842
+
+#include <tuple>
+#include <boost/fusion/support/tag_of_fwd.hpp>
+
+namespace std
+{
+ template <typename... Elements>
+ class tuple;
+}
+
+namespace boost { namespace fusion
+{
+ struct std_tuple_tag;
+ struct fusion_sequence_tag;
+
+ namespace traits
+ {
+ template <typename... Elements>
+ struct tag_of<std::tuple<Elements...>>
+ {
+ typedef std_tuple_tag type;
+ };
+ }
+}}
+
+namespace boost { namespace mpl
+{
+ template <typename>
+ struct sequence_tag;
+
+ template <typename... Elements>
+ struct sequence_tag<std::tuple<Elements...>>
+ {
+ typedef fusion::fusion_sequence_tag type;
+ };
+
+ template <typename... Elements>
+ struct sequence_tag<std::tuple<Elements...> const>
+ {
+ typedef fusion::fusion_sequence_tag type;
+ };
+}}
+
+#endif