cereal::detail::OutputBindingMap&lt; Archive &gt;(3) Library Functions Manual cereal::detail::OutputBindingMap&lt; Archive &gt;(3)

# [NAME](#NAME)

cereal::detail::OutputBindingMap&lt; Archive &gt; - A structure holding a map from type\_indices to output serializer functions.

# [SYNOPSIS](#SYNOPSIS)

#include &lt;/home/build/include/cereal/details/polymorphic\_impl.hpp&gt;

## [Classes](#Classes)

struct **Serializers**  
Struct containing the serializer functions for all pointer types.

## [Public Types](#Public_Types)

typedef std::function&lt; void(void \*, void const \*, std::type\_info const &)&gt; **Serializer**  
A serializer function.

## [Public Attributes](#Public_Attributes)

std::map&lt; std::type\_index, **Serializers** &gt; **map**  
A map of serializers for pointers of all registered types.

# [Detailed Description](#Detailed_Description)

## [template&lt;class Archive&gt;](#template_class_Archive_)

struct cereal::detail::OutputBindingMap&lt; Archive &gt;"A structure holding a map from type\_indices to output serializer functions.

A static object of this map should be created for each registered archive type, containing entries for every registered type that describe how to properly cast the type to its real type in polymorphic scenarios for shared\_ptr, weak\_ptr, and unique\_ptr.

# [Member Typedef Documentation](#Member_Typedef_Documentation)

## [template&lt;class Archive&gt; typedef std::function&lt;void(void\*, void const \*, std::type\_info const &)&gt; **cereal::detail::OutputBindingMap**&lt; Archive &gt;::Serializer](#template_class_Archive__typedef_std::function_void%28void*,_void_const_*,_std::type_info_const_&%29__)

A serializer function. **Serializer** functions return nothing and take an archive as their first parameter (will be cast properly inside the function, a pointer to actual data (contents of smart\_ptr's get() function) as their second parameter, and the type info of the owning smart\_ptr as their final parameter

# [Author](#Author)

Generated automatically by Doxygen for cereal from the source code.

Mon Oct 26 2026 02:55:37 cereal

---

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