1 //
2 // MessagePack for C++ static resolution routine
3 //
4 // Copyright (C) 2015 KONDO Takatoshi
5 //
6 //    Distributed under the Boost Software License, Version 1.0.
7 //    (See accompanying file LICENSE_1_0.txt or copy at
8 //    http://www.boost.org/LICENSE_1_0.txt)
9 //
10 
11 #ifndef MSGPACK_V1_META_HPP
12 #define MSGPACK_V1_META_HPP
13 
14 #if !defined(MSGPACK_USE_CPP03)
15 
16 #include "msgpack/v1/meta_decl.hpp"
17 
18 namespace msgpack {
19 
20 /// @cond
MSGPACK_API_VERSION_NAMESPACE(v1)21 MSGPACK_API_VERSION_NAMESPACE(v1) {
22 /// @endcond
23 
24 
25 
26 namespace detail {
27 
28 template<bool...values> struct all_of_imp
29     : std::is_same<bool_pack<values..., true>, bool_pack<true, values...>>{};
30 
31 template<bool...values> struct any_of_imp {
32     static const bool value = !std::is_same<bool_pack<values..., false>, bool_pack<false, values...>>::value;
33 };
34 
35 } // namespace detail
36 
37 template<std::size_t... Is> struct seq {};
38 
39 template<std::size_t N, std::size_t... Is>
40 struct gen_seq : gen_seq<N-1, N-1, Is...> {};
41 
42 template<std::size_t... Is>
43 struct gen_seq<0, Is...> : seq<Is...> {};
44 
45 /// @cond
46 } // MSGPACK_API_VERSION_NAMESPACE(v1)
47 /// @endcond
48 
49 } // namespace msgpack
50 
51 #endif // !defined(MSGPACK_USE_CPP03)
52 
53 #endif // MSGPACK_V1_META_HPP
54