stack.hpp(3) Library Functions Manual stack.hpp(3)

# [NAME](#NAME)

stack.hpp - Support for types found in &lt;stack&gt;.

# [SYNOPSIS](#SYNOPSIS)

#include 'cereal/cereal.hpp'  
#include &lt;stack&gt;  
#include 'cereal/types/deque.hpp'

## [Functions](#Functions)

template&lt;class T, class C&gt; C const & **cereal::stack\_detail::container** (std::stack&lt; T, C &gt; const &stack)  
Allows access to the protected container in stack. template&lt;class Archive, class T, class C&gt; void **cereal::CEREAL\_SAVE\_FUNCTION\_NAME** (Archive &ar, std::stack&lt; T, C &gt; const &stack)  
Saving for std::stack. template&lt;class Archive, class T, class C&gt; void **cereal::CEREAL\_LOAD\_FUNCTION\_NAME** (Archive &ar, std::stack&lt; T, C &gt; &stack)  
Loading for std::stack.

# [Detailed Description](#Detailed_Description)

Support for types found in &lt;stack&gt;.

# [Author](#Author)

Generated automatically by Doxygen for cereal from the source code.

Mon Oct 26 2026 20:39:03 cereal

---

Document: stack.hpp(3) from cereal 1.3.2-r8 (Chainguard OS)
Source: https://github.com/USCiLab/cereal
