30 #ifndef CEREAL_TYPES_DEQUE_HPP_
31 #define CEREAL_TYPES_DEQUE_HPP_
39 template <
class Archive,
class T,
class A>
inline
42 ar( make_size_tag(
static_cast<size_type>(deque.size()) ) );
44 for(
auto const & i : deque )
49 template <
class Archive,
class T,
class A>
inline
53 ar( make_size_tag( size ) );
55 deque.resize(
static_cast<size_t>( size ) );
57 for(
auto & i : deque )
Main cereal functionality.
in certain simple scenarios. They should probably not be used if maximizing performance is the main o...
Definition: access.hpp:42
std::enable_if< std::is_arithmetic< T >::value, void >::type CEREAL_LOAD_FUNCTION_NAME(BinaryInputArchive &ar, T &t)
Loading for POD types from binary.
Definition: binary.hpp:126
std::enable_if< std::is_arithmetic< T >::value, void >::type CEREAL_SAVE_FUNCTION_NAME(BinaryOutputArchive &ar, T const &t)
Saving for POD types to binary.
Definition: binary.hpp:118
CEREAL_SIZE_TYPE size_type
The size type used by cereal.
Definition: helpers.hpp:61