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

# [NAME](#NAME)

common.hpp - Support common types - always included automatically.

# [SYNOPSIS](#SYNOPSIS)

#include 'cereal/cereal.hpp'

## [Classes](#Classes)

class **cereal::common\_detail::is\_enum&lt; T &gt;**  
Checks if a type is an enum.

## [Functions](#Functions)

template&lt;class Archive, class T&gt; void **cereal::common\_detail::serializeArray** (Archive &ar, T &array, std::true\_type)  
Serialization for arrays if **BinaryData** is supported and we are arithmetic. template&lt;class Archive, class T&gt; void **cereal::common\_detail::serializeArray** (Archive &ar, T &array, std::false\_type)  
Serialization for arrays if **BinaryData** is not supported or we are not arithmetic. template&lt;class Archive, class T&gt; std::enable\_if&lt; **common\_detail::is\_enum**&lt; T &gt;::value, typenamecommon\_detail::is\_enum&lt; T &gt;::base\_type &gt;::type **cereal::CEREAL\_SAVE\_MINIMAL\_FUNCTION\_NAME** (Archive const &, T const &t)  
Saving for enum types. template&lt;class Archive, class T&gt; std::enable\_if&lt; **common\_detail::is\_enum**&lt; T &gt;::value, void &gt;::type **cereal::CEREAL\_LOAD\_MINIMAL\_FUNCTION\_NAME** (Archive const &, T &&t, typename **common\_detail::is\_enum**&lt; T &gt;::base\_type const &value)  
Loading for enum types. template&lt;class Archive, class T&gt; void **cereal::CEREAL\_SERIALIZE\_FUNCTION\_NAME** (Archive &, T \*&)  
Serialization for raw pointers. template&lt;class Archive, class T&gt; std::enable\_if&lt; std::is\_array&lt; T &gt;::value, void &gt;::type **cereal::CEREAL\_SERIALIZE\_FUNCTION\_NAME** (Archive &ar, T &array)  
Serialization for C style arrays.

# [Detailed Description](#Detailed_Description)

Support common types - always included automatically.

# [Function Documentation](#Function_Documentation)

## [template&lt;class Archive, class T&gt; void cereal::CEREAL\_SERIALIZE\_FUNCTION\_NAME (Archive & , T \*& ) \[inline\]](#template_class_Archive,_class_T__void_cereal::CEREAL_SERIALIZE_FUNCTION_NAME_%28Archive_&_,_T_*&_%29)

Serialization for raw pointers. This exists only to throw a static\_assert to let users know we don't support raw pointers.

# [Author](#Author)

Generated automatically by Doxygen for cereal from the source code.

Mon Oct 26 2026 02:55:37 cereal

---

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