10#ifndef MSGPACK_V1_TYPE_CPP11_UNORDERED_SET_HPP
11#define MSGPACK_V1_TYPE_CPP11_UNORDERED_SET_HPP
18#include <unordered_set>
28template <
typename Key,
typename Hash,
typename Compare,
typename Alloc>
34 std::unordered_set<Key, Hash, Compare, Alloc>
v;
37 v.insert(
p->as<
Key>());
43template <
typename Key,
typename Hash,
typename Compare,
typename Alloc>
49 std::unordered_set<Key, Hash, Compare, Alloc>
tmp;
59template <
typename Key,
typename Hash,
typename Compare,
typename Alloc>
61 template <
typename Stream>
65 for(
typename std::unordered_set<Key, Hash, Compare, Alloc>::const_iterator
it(
v.begin()),
it_end(
v.end());
73template <
typename Key,
typename Hash,
typename Compare,
typename Alloc>
76 o.type = msgpack::type::ARRAY;
85 o.via.array.size = size;
86 typename std::unordered_set<Key, Hash, Compare, Alloc>::const_iterator
it(
v.begin());
97template <
typename Key,
typename Hash,
typename Compare,
typename Alloc>
103 std::unordered_multiset<Key, Hash, Compare, Alloc>
v;
106 v.insert(
p->as<
Key>());
112template <
typename Key,
typename Hash,
typename Compare,
typename Alloc>
118 std::unordered_multiset<Key, Hash, Compare, Alloc>
tmp;
128template <
typename Key,
typename Hash,
typename Compare,
typename Alloc>
130 template <
typename Stream>
134 for(
typename std::unordered_multiset<Key, Hash, Compare, Alloc>::const_iterator
it(
v.begin()),
it_end(
v.end());
142template <
typename Key,
typename Hash,
typename Compare,
typename Alloc>
145 o.type = msgpack::type::ARRAY;
148 o.via.array.size = 0;
154 o.via.array.size = size;
155 typename std::unordered_multiset<Key, Hash, Compare, Alloc>::const_iterator
it(
v.begin());
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::unordered_multiset< Key, Hash, Compare, Alloc > operator()(msgpack::object const &o) const
Definition unordered_set.hpp:99
std::unordered_set< Key, Hash, Compare, Alloc > operator()(msgpack::object const &o) const
Definition unordered_set.hpp:30
Definition object_fwd_decl.hpp:61
msgpack::object const & operator()(msgpack::object const &o, std::unordered_multiset< Key, Hash, Compare, Alloc > &v) const
Definition unordered_set.hpp:114
msgpack::object const & operator()(msgpack::object const &o, std::unordered_set< Key, Hash, Compare, Alloc > &v) const
Definition unordered_set.hpp:45
Definition adaptor_base.hpp:27
void operator()(msgpack::object::with_zone &o, const std::unordered_multiset< Key, Hash, Compare, Alloc > &v) const
Definition unordered_set.hpp:144
void operator()(msgpack::object::with_zone &o, const std::unordered_set< Key, Hash, Compare, Alloc > &v) const
Definition unordered_set.hpp:75
Definition adaptor_base.hpp:43
msgpack::packer< Stream > & operator()(msgpack::packer< Stream > &o, const std::unordered_multiset< Key, Hash, Compare, Alloc > &v) const
Definition unordered_set.hpp:131
msgpack::packer< Stream > & operator()(msgpack::packer< Stream > &o, const std::unordered_set< Key, Hash, Compare, Alloc > &v) const
Definition unordered_set.hpp:62
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