10 #ifndef MSGPACK_V1_TYPE_DEQUE_HPP 11 #define MSGPACK_V1_TYPE_DEQUE_HPP 27 #if !defined(MSGPACK_USE_CPP03) 29 template <
typename T,
typename Alloc>
30 struct as<std::deque<T, Alloc>, typename std::enable_if<msgpack::has_as<T>::value>::type> {
33 std::deque<T, Alloc> v;
38 v.push_back(p->
as<T>());
46 #endif // !defined(MSGPACK_USE_CPP03) 48 template <
typename T,
typename Alloc>
55 typename std::deque<T, Alloc>::iterator it = v.begin();
56 for(; p < pend; ++p, ++it) {
63 template <
typename T,
typename Alloc>
64 struct pack<std::deque<T, Alloc> > {
65 template <
typename Stream>
69 for(
typename std::deque<T, Alloc>::const_iterator it(v.begin()), it_end(v.end());
77 template <
typename T,
typename Alloc>
90 typename std::deque<T, Alloc>::const_iterator it(v.begin());
108 #endif // MSGPACK_V1_TYPE_DEQUE_HPP uint32_t size
Definition: object_fwd.hpp:23
void * allocate_align(size_t size, size_t align=MSGPACK_ZONE_ALIGN)
Definition: cpp03_zone.hpp:236
uint32_t checked_get_container_size(T size)
Definition: check_container_size.hpp:55
Definition: object_fwd_decl.hpp:60
union_type via
Definition: object_fwd.hpp:92
msgpack::zone & zone
Definition: object.hpp:36
msgpack::object * ptr
Definition: object_fwd.hpp:24
packer< Stream > & pack_array(uint32_t n)
Packing array header and size.
Definition: pack.hpp:1160
Definition: adaptor_base.hpp:15
Definition: object.hpp:34
packer< Stream > & pack(const T &v)
Packing function template.
std::enable_if< msgpack::has_as< T >::value, T >::type as() const
Get value as T.
Definition: object.hpp:584
Definition: adaptor_base.hpp:43
msgpack::enable_if< !msgpack::is_array< T >::value &&!msgpack::is_pointer< T >::value, T & >::type convert(T &v) const
Convert the object.
Definition: object.hpp:534
Definition: object_fwd.hpp:233
Definition: adaptor_base.hpp:32
msgpack::object_array array
Definition: object_fwd.hpp:84
Object class that corresponding to MessagePack format object.
Definition: object_fwd.hpp:75
std::deque< T, Alloc > operator()(const msgpack::object &o) const
Definition: deque.hpp:31
msgpack::type::object_type type
Definition: object_fwd.hpp:91
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition: versioning.hpp:58
Definition: object_fwd_decl.hpp:39
The class template that supports continuous packing.
Definition: adaptor_base_decl.hpp:24
msgpack::object const & operator()(msgpack::object const &o, std::deque< T, Alloc > &v) const
Definition: deque.hpp:50
void operator()(msgpack::object::with_zone &o, const std::deque< T, Alloc > &v) const
Definition: deque.hpp:79
msgpack::packer< Stream > & operator()(msgpack::packer< Stream > &o, const std::deque< T, Alloc > &v) const
Definition: deque.hpp:66
Definition: adaptor_base.hpp:27