30 #ifndef CEREAL_TYPES_FORWARD_LIST_HPP_
31 #define CEREAL_TYPES_FORWARD_LIST_HPP_
34 #include <forward_list>
39 template <
class Archive,
class T,
class A>
inline
45 size_type const size = std::distance( forward_list.begin(), forward_list.end() );
47 ar( make_size_tag( size ) );
50 for(
const auto & i : forward_list )
55 template <
class Archive,
class T,
class A>
59 ar( make_size_tag( size ) );
61 forward_list.resize(
static_cast<size_t>( size ) );
63 for(
auto & i : forward_list )
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