]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/fusion/include/boost/fusion/adapted/std_tuple/tag_of.hpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / fusion / include / boost / fusion / adapted / std_tuple / tag_of.hpp
1 /*=============================================================================
2 Copyright (c) 2001-2011 Joel de Guzman
3
4 Distributed under the Boost Software License, Version 1.0. (See accompanying
5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 ==============================================================================*/
7 #if !defined(BOOST_FUSION_TAG_OF_09112011_1842)
8 #define BOOST_FUSION_TAG_OF_09112011_1842
9
10 #include <boost/fusion/support/config.hpp>
11 #include <tuple>
12 #include <boost/fusion/support/tag_of_fwd.hpp>
13
14 namespace boost { namespace fusion
15 {
16 struct std_tuple_tag;
17 struct fusion_sequence_tag;
18
19 namespace traits
20 {
21 template <typename... Elements>
22 struct tag_of<std::tuple<Elements...>>
23 {
24 typedef std_tuple_tag type;
25 };
26 }
27 }}
28
29 namespace boost { namespace mpl
30 {
31 template <typename>
32 struct sequence_tag;
33
34 template <typename... Elements>
35 struct sequence_tag<std::tuple<Elements...>>
36 {
37 typedef fusion::fusion_sequence_tag type;
38 };
39
40 template <typename... Elements>
41 struct sequence_tag<std::tuple<Elements...> const>
42 {
43 typedef fusion::fusion_sequence_tag type;
44 };
45 }}
46
47 #endif