19 namespace serialization {
21 template<
typename Archive,
typename T,
typename Compare,
typename Allocator>
22 void save(Archive &ar,
const std::set<T, Compare, Allocator> &t,
const unsigned int)
24 ar << unsigned(t.size());
25 for (
const auto &elem : t)
31 template<
typename Archive,
typename T,
typename Compare,
typename Allocator>
32 void load(Archive &ar, std::set<T, Compare, Allocator> &t,
const unsigned int)
37 for (
size_t i = 0; i < size_t(size); i++)
41 t.insert(std::move(elem));
45 template <
typename Archive,
typename T,
typename Compare,
typename Allocator>
46 void serialize(Archive &ar, std::set<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