MessagePack for C++
Toggle main menu visibility
Loading...
Searching...
No Matches
msgpack
v1
adaptor
boost
msgpack_variant_decl.hpp
Go to the documentation of this file.
1
//
2
// MessagePack for C++ static resolution routine
3
//
4
// Copyright (C) 2015-2016 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
#ifndef MSGPACK_V1_TYPE_BOOST_MSGPACK_VARIANT_DECL_HPP
11
#define MSGPACK_V1_TYPE_BOOST_MSGPACK_VARIANT_DECL_HPP
12
13
#include "
msgpack/versioning.hpp
"
14
#include "
msgpack/adaptor/adaptor_base.hpp
"
15
#include "
msgpack/object.hpp
"
16
#include "
msgpack/adaptor/check_container_size.hpp
"
17
#include "
msgpack/adaptor/boost/string_ref.hpp
"
18
#include "
msgpack/adaptor/ext.hpp
"
19
#include "
msgpack/adaptor/raw.hpp
"
20
21
#include <string>
22
#include <vector>
23
namespace
msgpack
{
24
26
MSGPACK_API_VERSION_NAMESPACE
(v1) {
28
29
namespace
type
{
30
31
template
<
typename
STR,
typename
BIN,
typename
EXT>
32
struct
basic_variant
;
33
34
template
<
typename
STR,
typename
BIN,
typename
EXT>
35
bool
operator<
(
basic_variant<STR, BIN, EXT>
const
& lhs,
basic_variant<STR, BIN, EXT>
const
& rhs);
36
37
template
<
typename
STR,
typename
BIN,
typename
EXT>
38
bool
operator==
(
basic_variant<STR, BIN, EXT>
const
& lhs,
basic_variant<STR, BIN, EXT>
const
& rhs);
39
40
template
<
typename
STR,
typename
BIN,
typename
EXT>
41
bool
operator!=
(
basic_variant<STR, BIN, EXT>
const
& lhs,
basic_variant<STR, BIN, EXT>
const
& rhs);
42
43
typedef
basic_variant<std::string, std::vector<char>
,
msgpack::type::ext
>
variant
;
44
typedef
basic_variant
<
45
#if (BOOST_VERSION / 100000) >= 1 && ((BOOST_VERSION / 100) % 1000) >= 53
46
boost::string_ref,
47
#else
// (BOOST_VERSION / 100000) >= 1 && ((BOOST_VERSION / 100) % 1000) >= 53
48
std::string,
49
#endif
// (BOOST_VERSION / 100000) >= 1 && ((BOOST_VERSION / 100) % 1000) >= 53
50
msgpack::type::raw_ref
,
msgpack::type::ext_ref
>
variant_ref
;
51
52
}
// namespace type
53
55
}
// MSGPACK_API_VERSION_NAMESPACE(v1)
57
58
}
// namespace msgpack
59
60
#endif
// MSGPACK_V1_TYPE_BOOST_MSGPACK_VARIANT_DECL_HPP
adaptor_base.hpp
string_ref.hpp
check_container_size.hpp
ext.hpp
raw.hpp
msgpack::type::ext_ref
Definition
ext.hpp:118
msgpack::type::ext
Definition
ext.hpp:26
msgpack::type
Definition
array_ref.hpp:24
msgpack::type::variant
basic_variant< std::string, std::vector< char >, ext > variant
Definition
msgpack_variant.hpp:269
msgpack::type::operator<
bool operator<(basic_variant< STR, BIN, EXT > const &lhs, basic_variant< STR, BIN, EXT > const &rhs)
Definition
msgpack_variant.hpp:256
msgpack::type::operator!=
bool operator!=(basic_variant< STR, BIN, EXT > const &lhs, basic_variant< STR, BIN, EXT > const &rhs)
msgpack::type::variant_ref
basic_variant< std::string, raw_ref, ext_ref > variant_ref
Definition
msgpack_variant.hpp:276
msgpack::type::operator==
bool operator==(basic_variant< STR, BIN, EXT > const &lhs, basic_variant< STR, BIN, EXT > const &rhs)
Definition
msgpack_variant.hpp:263
msgpack
Definition
adaptor_base.hpp:15
object.hpp
msgpack::type::basic_variant
Definition
msgpack_variant.hpp:72
msgpack::type::raw_ref
Definition
raw.hpp:26
MSGPACK_API_VERSION_NAMESPACE
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition
versioning.hpp:66
versioning.hpp
Generated by
1.17.0