19 namespace serialization {
22 template <
typename Archive,
typename Allocator>
23 void save(Archive &ar,
const std::vector<bool, Allocator> &t,
const unsigned int)
25 ar << unsigned(t.size());
26 for (
const bool elem : t)
32 template <
typename Archive,
typename Allocator>
33 void load(Archive &ar, std::vector<bool, Allocator> &t,
const unsigned int)
38 for (
size_t i = 0; i < size_t(size); i++)
47 template<
typename Archive,
typename T,
typename Allocator>
48 void save(Archive &ar,
const std::vector<T, Allocator> &t,
const unsigned int)
50 ar << unsigned(t.size());
51 for (
const auto &elem : t)
57 template<
typename Archive,
typename T,
typename Allocator>
58 void load(Archive &ar, std::vector<T, Allocator> &t,
const unsigned int)
63 for (
size_t i = 0; i < size_t(size); i++)
67 t[i] = std::move(elem);
71 template <
typename Archive,
typename T,
typename Allocator>
72 void serialize(Archive &ar, std::vector<T, 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