MessagePack for C++
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
19
20#include <string>
21#include <vector>
22namespace msgpack {
23
27
28namespace type {
29
30template <typename STR, typename BIN, typename EXT>
31struct basic_variant;
32
33template <typename STR, typename BIN, typename EXT>
34bool operator<(basic_variant<STR, BIN, EXT> const& lhs, basic_variant<STR, BIN, EXT> const& rhs);
35
36template <typename STR, typename BIN, typename EXT>
37bool operator==(basic_variant<STR, BIN, EXT> const& lhs, basic_variant<STR, BIN, EXT> const& rhs);
38
39template <typename STR, typename BIN, typename EXT>
41
43typedef basic_variant<
44#if (BOOST_VERSION / 100000) >= 1 && ((BOOST_VERSION / 100) % 1000) >= 53
45 boost::string_ref,
46#else // (BOOST_VERSION / 100000) >= 1 && ((BOOST_VERSION / 100) % 1000) >= 53
47 std::string,
48#endif // (BOOST_VERSION / 100000) >= 1 && ((BOOST_VERSION / 100) % 1000) >= 53
50
51} // namespace type
52
54} // MSGPACK_API_VERSION_NAMESPACE(v1)
56
57} // namespace msgpack
58
59#endif // MSGPACK_V1_TYPE_BOOST_MSGPACK_VARIANT_DECL_HPP
Definition: ext.hpp:118
Definition: ext.hpp:26
basic_variant< std::string, std::vector< char >, ext > variant
Definition: msgpack_variant.hpp:271
bool operator<(basic_variant< STR, BIN, EXT > const &lhs, basic_variant< STR, BIN, EXT > const &rhs)
Definition: msgpack_variant.hpp:258
bool operator!=(basic_variant< STR, BIN, EXT > const &lhs, basic_variant< STR, BIN, EXT > const &rhs)
basic_variant< std::string, raw_ref, ext_ref > variant_ref
Definition: msgpack_variant.hpp:278
bool operator==(basic_variant< STR, BIN, EXT > const &lhs, basic_variant< STR, BIN, EXT > const &rhs)
Definition: msgpack_variant.hpp:265
Definition: adaptor_base.hpp:15
Definition: msgpack_variant.hpp:72
Definition: raw.hpp:26
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition: versioning.hpp:66