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

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

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

## [Enumerations](#Enumerations)

enum class **cereal::bitset\_detail::type** : uint8\_t { **ulong**, **ullong**, **string**, **bits** }  
The type the bitset is encoded with.

## [Functions](#Functions)

template&lt;class Archive, size\_t N, traits::EnableIf&lt; **traits::is\_output\_serializable**&lt; **BinaryData**&lt; std::uint32\_t &gt;, Archive &gt;::value &gt; = traits::sfinae&gt; void **cereal::CEREAL\_SAVE\_FUNCTION\_NAME** (Archive &ar, std::bitset&lt; N &gt; const &bits)  
Serializing (save) for std::bitset when **BinaryData** optimization supported. template&lt;class Archive, size\_t N, traits::DisableIf&lt; **traits::is\_output\_serializable**&lt; **BinaryData**&lt; std::uint32\_t &gt;, Archive &gt;::value &gt; = traits::sfinae&gt; void **cereal::CEREAL\_SAVE\_FUNCTION\_NAME** (Archive &ar, std::bitset&lt; N &gt; const &bits)  
Serializing (save) for std::bitset when **BinaryData** is not supported. template&lt;class Archive, size\_t N&gt; void **cereal::CEREAL\_LOAD\_FUNCTION\_NAME** (Archive &ar, std::bitset&lt; N &gt; &bits)  
Serializing (load) for std::bitset.

# [Detailed Description](#Detailed_Description)

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

# [Author](#Author)

Generated automatically by Doxygen for cereal from the source code.

Mon Oct 26 2026 02:55:37 cereal

---

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