30 #ifndef CEREAL_TYPES_STACK_HPP_
31 #define CEREAL_TYPES_STACK_HPP_
41 namespace stack_detail
44 template <
class T,
class C>
inline
45 C
const &
container( std::stack<T, C>
const & stack )
47 struct H :
public std::stack<T, C>
49 static C
const &
get( std::stack<T, C>
const & s )
60 template <
class Archive,
class T,
class C>
inline
67 template <
class Archive,
class T,
class C>
inline
72 stack = std::stack<T, C>( std::move(
container ) );
Main cereal functionality.
Support for types found in <deque>
#define CEREAL_NVP_(name, value)
Convenience for creating a templated NVP.
Definition: helpers.hpp:201
C const & container(std::stack< T, C > const &stack)
Allows access to the protected container in stack.
Definition: stack.hpp:45
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
auto get(const nlohmann::detail::iteration_proxy_value< IteratorType > &i) -> decltype(i.key())
Definition: json.hpp:5657