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 )
55 return H::get( stack );
60 template <
class Archive,
class T,
class C>
inline
63 ar(
CEREAL_NVP_(
"container", stack_detail::container( stack )) );
67 template <
class Archive,
class T,
class C>
inline
72 stack = std::stack<T, C>( std::move( container ) );
76 #endif // CEREAL_TYPES_STACK_HPP_