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

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

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

## [Functions](#Functions)

template&lt;class Archive, class CharT, class Traits, class Alloc&gt; std::enable\_if&lt; **traits::is\_output\_serializable**&lt; **BinaryData**&lt; CharT &gt;, Archive &gt;::value, void &gt;::type **cereal::CEREAL\_SAVE\_FUNCTION\_NAME** (Archive &ar, std::basic\_string&lt; CharT, Traits, Alloc &gt; const &str)  
Serialization for basic\_string types, if binary data is supported. template&lt;class Archive, class CharT, class Traits, class Alloc&gt; std::enable\_if&lt; **traits::is\_input\_serializable**&lt; **BinaryData**&lt; CharT &gt;, Archive &gt;::value, void &gt;::type **cereal::CEREAL\_LOAD\_FUNCTION\_NAME** (Archive &ar, std::basic\_string&lt; CharT, Traits, Alloc &gt; &str)  
Serialization for basic\_string types, if binary data is supported.

# [Detailed Description](#Detailed_Description)

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

# [Author](#Author)

Generated automatically by Doxygen for cereal from the source code.

Sat Aug 29 2026 00:42:30 cereal

---

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