11#ifndef MSGPACK_V1_TYPE_CPP11_FORWARD_LIST_HPP
12#define MSGPACK_V1_TYPE_CPP11_FORWARD_LIST_HPP
19#include <forward_list>
29template <
typename T,
typename Alloc>
33 std::forward_list<T, Alloc>
v;
38 v.push_front(
p->as<
T>());
44template <
typename T,
typename Alloc>
48 v.resize(
o.via.array.size);
58template <
typename T,
typename Alloc>
60 template <
typename Stream>
64 for(
auto const&
e :
v)
o.pack(
e);
69template <
typename T,
typename Alloc>
72 o.type = msgpack::type::ARRAY;
78 o.via.array.size = size;
The class template that supports continuous packing.
Definition pack.hpp:33
Definition object_fwd.hpp:231
Definition adaptor_base.hpp:15
uint32_t checked_get_container_size(T size)
Definition check_container_size.hpp:55
std::forward_list< T, Alloc > operator()(msgpack::object const &o) const
Definition forward_list.hpp:31
Definition object_fwd_decl.hpp:61
msgpack::object const & operator()(msgpack::object const &o, std::forward_list< T, Alloc > &v) const
Definition forward_list.hpp:46
Definition adaptor_base.hpp:27
void operator()(msgpack::object::with_zone &o, const std::forward_list< T, Alloc > &v) const
Definition forward_list.hpp:71
Definition adaptor_base.hpp:43
msgpack::packer< Stream > & operator()(msgpack::packer< Stream > &o, const std::forward_list< T, Alloc > &v) const
Definition forward_list.hpp:61
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