MessagePack for C++
Loading...
Searching...
No Matches
meta.hpp
Go to the documentation of this file.
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
17
18namespace msgpack {
19
23
24
25
26namespace detail {
27
28template<bool...values> struct all_of_imp
29 : std::is_same<bool_pack<values..., true>, bool_pack<true, values...>>{};
30
31template<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
37template<std::size_t... Is> struct seq {};
38
39template<std::size_t N, std::size_t... Is>
40struct gen_seq : gen_seq<N-1, N-1, Is...> {};
41
42template<std::size_t... Is>
43struct gen_seq<0, Is...> : seq<Is...> {};
44
46} // MSGPACK_API_VERSION_NAMESPACE(v1)
48
49} // namespace msgpack
50
51#endif // !defined(MSGPACK_USE_CPP03)
52
53#endif // MSGPACK_V1_META_HPP
Definition adaptor_base.hpp:15
Definition meta.hpp:29
Definition meta.hpp:31
static const bool value
Definition meta.hpp:32
Definition meta_decl.hpp:27
Definition unpack.hpp:284
Definition meta.hpp:40
Definition meta.hpp:37
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition versioning.hpp:66