10#ifndef MSGPACK_V1_CPP11_MSGPACK_TUPLE_HPP
11#define MSGPACK_V1_CPP11_MSGPACK_TUPLE_HPP
25template <
class...
Args>
30template<
class...
Args>
38 std::tuple_cat(std::forward<
typename std::remove_reference<Tuples>::type::base>(
args)...)
40 return std::tuple_cat(std::forward<
typename std::remove_reference<Tuples>::type::base>(
args)...);
43template <
class...
Args>
50template <
typename Stream,
typename Tuple, std::
size_t N>
60template <
typename Stream,
typename Tuple>
69template <
typename Stream,
typename Tuple>
79template <
typename... Args>
81 template <
typename Stream>
85 o.pack_array(
sizeof...(
Args));
95template <
typename T,
typename...
Args>
98 return msgpack::type::tuple_cat(
99 msgpack::type::make_tuple(
o.via.array.ptr[
o.via.array.size -
sizeof...(Args) - 1].as<
T>()),
104template <
typename...
Args>
118template <
typename Tuple, std::
size_t N>
124 if (
o.via.array.size >=
N)
125 o.via.array.ptr[
N-1].convert<
typename std::remove_reference<
decltype(
v.template get<
N-1>())>::type>(
v.template get<
N-1>());
129template <
typename Tuple>
134 o.via.array.ptr[0].convert<
typename std::remove_reference<
decltype(
v.template
get<0>())>::type>(
v.template
get<0>());
138template <
typename Tuple>
148template <
typename... Args>
157template <
typename... Args>
171template <
typename Tuple, std::
size_t N>
181template <
typename Tuple>
190template <
typename Tuple>
200template <
typename... Args>
205 o.type = msgpack::type::ARRAY;
207 o.via.array.size =
sizeof...(Args);
The class template that supports continuous packing.
Definition pack.hpp:33
Definition cpp11_msgpack_tuple_decl.hpp:35
Definition object_fwd.hpp:231
tuple< Args &... > tie(Args &... args)
Definition cpp11_msgpack_tuple.hpp:44
tuple make_tuple()
Definition cpp03_msgpack_tuple.hpp:10408
auto tuple_cat(Tuples &&... args) -> decltype(std::tuple_cat(std::forward< typename std::remove_reference< Tuples >::type::base >(args)...))
Definition cpp11_msgpack_tuple.hpp:36
tuple< Args &&... > forward_as_tuple(Args &&... args) noexcept
Definition cpp11_msgpack_tuple.hpp:31
Definition adaptor_base.hpp:15
void convert(T &v, msgpack::object const &o)
Definition object.hpp:1178
static msgpack::type::tuple as(msgpack::object const &)
Definition cpp11_msgpack_tuple.hpp:113
Definition cpp11_msgpack_tuple.hpp:105
static msgpack::type::tuple< Args... > as(msgpack::object const &o)
Definition cpp11_msgpack_tuple.hpp:106
Definition cpp11_msgpack_tuple.hpp:96
static msgpack::type::tuple< T, Args... > as(msgpack::object const &o)
Definition cpp11_msgpack_tuple.hpp:97
static void convert(msgpack::object const &, Tuple &)
Definition cpp11_msgpack_tuple.hpp:140
static void convert(msgpack::object const &o, Tuple &v)
Definition cpp11_msgpack_tuple.hpp:131
Definition cpp11_msgpack_tuple.hpp:119
static void convert(msgpack::object const &o, Tuple &v)
Definition cpp11_msgpack_tuple.hpp:120
static void pack(msgpack::packer< Stream > &, const Tuple &)
Definition cpp11_msgpack_tuple.hpp:71
static void pack(msgpack::packer< Stream > &o, const Tuple &v)
Definition cpp11_msgpack_tuple.hpp:62
Definition cpp11_msgpack_tuple.hpp:51
static void pack(msgpack::packer< Stream > &o, const Tuple &v)
Definition cpp11_msgpack_tuple.hpp:52
static void convert(msgpack::object::with_zone &, const Tuple &)
Definition cpp11_msgpack_tuple.hpp:192
static void convert(msgpack::object::with_zone &o, const Tuple &v)
Definition cpp11_msgpack_tuple.hpp:183
Definition cpp11_msgpack_tuple.hpp:172
static void convert(msgpack::object::with_zone &o, const Tuple &v)
Definition cpp11_msgpack_tuple.hpp:173
msgpack::type::tuple< Args... > operator()(msgpack::object const &o) const
Definition cpp11_msgpack_tuple.hpp:150
Definition object_fwd_decl.hpp:61
msgpack::object const & operator()(msgpack::object const &o, msgpack::type::tuple< Args... > &v) const
Definition cpp11_msgpack_tuple.hpp:159
Definition adaptor_base.hpp:27
void operator()(msgpack::object::with_zone &o, msgpack::type::tuple< Args... > const &v) const
Definition cpp11_msgpack_tuple.hpp:202
Definition adaptor_base.hpp:43
msgpack::packer< Stream > & operator()(msgpack::packer< Stream > &o, const msgpack::type::tuple< Args... > &v) const
Definition cpp11_msgpack_tuple.hpp:82
Definition adaptor_base.hpp:32
Object class that corresponding to MessagePack format object.
Definition object_fwd.hpp:75
Definition cpp03_msgpack_tuple.hpp:9165
#define MSGPACK_ZONE_ALIGNOF(type)
Definition cpp03_zone_decl.hpp:30
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition versioning.hpp:66