11#ifndef MSGPACK_V1_TYPE_CPP11_ARRAY_HPP
12#define MSGPACK_V1_TYPE_CPP11_ARRAY_HPP
34template<
typename T, std::size_t
N1, std::size_t...
I1, std::size_t
N2, std::size_t...
I2>
36 std::array<T, N1>&&
a1,
37 std::array<T, N2>&&
a2,
40 return {{ std::move(
a1[
I1])..., std::move(
a2[
I2])... }};
43template<
typename T, std::
size_t N1, std::
size_t N2>
44inline std::array<T, N1+N2>
concat(std::array<T, N1>&&
a1, std::array<T, N2>&&
a2) {
48template <
typename T, std::
size_t N>
60 return std::array<T, 1>{{
p->as<
T>()}};
67 return std::array<T, 0>();
75template <
typename T, std::
size_t N>
76struct as<std::array<T, N>,
typename std::enable_if<msgpack::has_as<T>::value>::type> {
84template <
typename T, std::
size_t N>
89 if(
o.via.array.size > 0) {
103template <
typename T, std::
size_t N>
105 template <
typename Stream>
109 for(
auto const&
e :
v)
o.pack(
e);
114template <
typename T, std::
size_t N>
117 o.type = msgpack::type::ARRAY;
120 o.via.array.size = 0;
124 o.via.array.size = size;
The class template that supports continuous packing.
Definition pack.hpp:33
Definition object_fwd.hpp:231
std::array< T, N1+N2 > concat(std::array< T, N1 > &&a1, std::array< T, N2 > &&a2, msgpack::seq< I1... >, msgpack::seq< I2... >)
Definition array.hpp:35
Definition adaptor_base.hpp:15
uint32_t checked_get_container_size(T size)
Definition check_container_size.hpp:55
std::array< T, N > operator()(msgpack::object const &o) const
Definition array.hpp:77
Definition object_fwd_decl.hpp:61
msgpack::object const & operator()(msgpack::object const &o, std::array< T, N > &v) const
Definition array.hpp:86
Definition adaptor_base.hpp:27
static std::array< T, 0 > as(msgpack::object const &)
Definition array.hpp:66
static std::array< T, 1 > as(msgpack::object const &o)
Definition array.hpp:58
static std::array< T, N > as(msgpack::object const &o)
Definition array.hpp:50
void operator()(msgpack::object::with_zone &o, const std::array< T, N > &v) const
Definition array.hpp:116
Definition adaptor_base.hpp:43
msgpack::packer< Stream > & operator()(msgpack::packer< Stream > &o, const std::array< T, N > &v) const
Definition array.hpp:106
Definition adaptor_base.hpp:32
Object class that corresponding to MessagePack format object.
Definition object_fwd.hpp:75
#define MSGPACK_NULLPTR
Definition cpp_config_decl.hpp:85
#define MSGPACK_ZONE_ALIGNOF(type)
Definition cpp03_zone_decl.hpp:30
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition versioning.hpp:66