]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/phoenix/include/boost/phoenix/stl/algorithm/detail/is_unordered_set_or_map.hpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / phoenix / include / boost / phoenix / stl / algorithm / detail / is_unordered_set_or_map.hpp
1 ///////////////////////////////////////////////////////////////////////////////
2 // Copyright 2005 Daniel Wallin.
3 // Copyright 2005 Joel de Guzman.
4 // Copyright 2015 John Fletcher
5 //
6 // Use, modification and distribution is subject to the Boost Software
7 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
8 // http://www.boost.org/LICENSE_1_0.txt)
9 //
10 // This is based on is_std_hash_map.hpp which was
11 // modeled after range_ex, Copyright 2004 Eric Niebler
12 ///////////////////////////////////////////////////////////////////////////////
13 //
14 // is_unordered_set_or_map.hpp
15 //
16 /////////////////////////////////////////////////////////////////////////////
17
18 // Definitions of overloads for the use of find with unordered types.
19
20 #ifndef BOOST_PHOENIX_IS_STD_UNORDERED_SET_OR_MAP
21 #define BOOST_PHOENIX_IS_STD_UNORDERED_SET_OR_MAP
22
23 #include <boost/mpl/bool.hpp>
24 #include "./std_unordered_set_or_map_fwd.hpp"
25
26 namespace boost
27 {
28 template<class T>
29 struct is_std_unordered_set
30 : boost::mpl::false_
31 {};
32
33 template<class T>
34 struct is_std_unordered_multiset
35 : boost::mpl::false_
36 {};
37
38 template<class T>
39 struct is_std_unordered_map
40 : boost::mpl::false_
41 {};
42
43 template<class T>
44 struct is_std_unordered_multimap
45 : boost::mpl::false_
46 {};
47
48 #ifdef BOOST_PHOENIX_HAS_UNORDERED_SET_AND_MAP
49
50 template<
51 class Kty
52 , class Hash
53 , class Cmp
54 , class Alloc
55 >
56 struct is_std_unordered_set< std::unordered_set<Kty,Hash,Cmp,Alloc> >
57 : boost::mpl::true_
58 {};
59
60 template<
61 class Kty
62 , class Hash
63 , class Cmp
64 , class Alloc
65 >
66 struct is_std_unordered_multiset< std::unordered_multiset<Kty,Hash,Cmp,Alloc> >
67 : boost::mpl::true_
68 {};
69
70 template<
71 class Kty
72 , class Ty
73 , class Hash
74 , class Cmp
75 , class Alloc
76 >
77 struct is_std_unordered_map< std::unordered_map<Kty,Ty,Hash,Cmp,Alloc> >
78 : boost::mpl::true_
79 {};
80
81 template<
82 class Kty
83 , class Ty
84 , class Hash
85 , class Cmp
86 , class Alloc
87 >
88 struct is_std_unordered_multimap< std::unordered_multimap<Kty,Ty,Hash,Cmp,Alloc> >
89 : boost::mpl::true_
90 {};
91
92 #endif
93 } // namespace boost
94
95 #endif