10 #ifndef MSGPACK_V1_TYPE_SIZE_EQUAL_ONLY_HPP
11 #define MSGPACK_V1_TYPE_SIZE_EQUAL_ONLY_HPP
24 inline std::size_t
size(T
const& t) {
28 template <
typename T, std::
size_t N>
29 inline std::size_t
size(
const T(&)[N]) {
34 #if !defined(MSGPACK_USE_CPP03)
36 template <
typename... T>
37 inline std::size_t
size(std::tuple<T...>
const&) {
62 return lhs.
m_t == &rhs.
m_t;
70 struct convert<type::size_equal_only<T> > {
88 struct pack<type::size_equal_only<T> > {
89 template <
typename Stream>
97 struct object<type::size_equal_only<T> > {
103 template <
typename T>
The class template that supports continuous packing.
Definition: pack.hpp:33
Definition: object_fwd.hpp:231
size_equal_only< T > make_size_equal_only(T &t)
Definition: size_equal_only.hpp:51
bool operator<(basic_variant< STR, BIN, EXT > const &lhs, basic_variant< STR, BIN, EXT > const &rhs)
Definition: msgpack_variant.hpp:258
std::size_t size(T const &t)
Definition: size_equal_only.hpp:24
@ MAP
Definition: object_fwd_decl.hpp:41
@ ARRAY
Definition: object_fwd_decl.hpp:40
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
msgpack::object const & operator()(msgpack::object const &o, type::size_equal_only< T > &v) const
Definition: size_equal_only.hpp:71
Definition: adaptor_base.hpp:27
void operator()(msgpack::object &o, type::size_equal_only< T > const &v) const
Definition: size_equal_only.hpp:98
void operator()(msgpack::object::with_zone &o, type::size_equal_only< T > v) const
Definition: size_equal_only.hpp:105
Definition: adaptor_base.hpp:43
Definition: adaptor_base.hpp:38
msgpack::packer< Stream > & operator()(msgpack::packer< Stream > &o, const type::size_equal_only< T > &v) const
Definition: size_equal_only.hpp:90
Definition: adaptor_base.hpp:32
Definition: object.hpp:35
uint32_t size
Definition: object_fwd.hpp:23
uint32_t size
Definition: object_fwd.hpp:28
Object class that corresponding to MessagePack format object.
Definition: object_fwd.hpp:75
union_type via
Definition: object_fwd.hpp:93
msgpack::type::object_type type
Definition: object_fwd.hpp:92
Definition: size_equal_only.hpp:45
size_equal_only(T &t)
Definition: size_equal_only.hpp:46
T & m_t
Definition: size_equal_only.hpp:47
msgpack::object_array array
Definition: object_fwd.hpp:85
msgpack::object_map map
Definition: object_fwd.hpp:86
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition: versioning.hpp:66