20 namespace serialization {
22 template<
typename Archive,
typename K,
typename T,
typename Compare,
typename Allocator>
23 void save(Archive &ar,
const std::map<K, T, Compare, Allocator> &t,
const unsigned int)
25 ar << unsigned(t.size());
26 for (
const auto &pair : t)
32 template<
typename Archive,
typename K,
typename T,
typename Compare,
typename Allocator>
33 void load(Archive &ar, std::map<K, T, Compare, Allocator> &t,
const unsigned int)
38 for (
size_t i = 0; i < size_t(size); i++)
42 t.emplace(std::move(pair));
46 template <
typename Archive,
typename K,
typename T,
typename Compare,
typename Allocator>
47 void serialize(Archive &ar, std::map<K, T, Compare, Allocator> &t,
const unsigned int ver)
Definition: ArchiveEntry.hpp:20
std::enable_if< Archive::isSave::value >::type invokeSplit(Archive &ar, T &value, const unsigned int ver)
Definition: Invoke.hpp:69
void save(Archive &ar, const std::complex< T > &t, const unsigned int)
Definition: Complex.hpp:20
void serialize(Archive &ar, std::complex< T > &t, const unsigned int ver)
Definition: Complex.hpp:37
void load(Archive &ar, std::complex< T > &t, const unsigned int)
Definition: Complex.hpp:27