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

# [NAME](#NAME)

optional.hpp - Support for std::optional.

# [SYNOPSIS](#SYNOPSIS)

#include 'cereal/cereal.hpp'  
#include &lt;optional&gt;

## [Functions](#Functions)

template&lt;class Archive, typename T&gt; void **cereal::CEREAL\_SAVE\_FUNCTION\_NAME** (Archive &ar, const std::optional&lt; T &gt; &optional)  
Saving for std::optional. template&lt;class Archive, typename T&gt; void **cereal::CEREAL\_LOAD\_FUNCTION\_NAME** (Archive &ar, std::optional&lt; T &gt; &optional)  
Loading for std::optional.

# [Detailed Description](#Detailed_Description)

Support for std::optional.

# [Author](#Author)

Generated automatically by Doxygen for cereal from the source code.

Sat Aug 29 2026 00:42:30 cereal

---

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