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

# [NAME](#NAME)

cereal::detail::InputBindingMap&lt; Archive &gt; - A structure holding a map from type name strings to input 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 \*, std::shared\_ptr&lt; void &gt; &, std::type\_info const &)&gt; **SharedSerializer**  
Shared ptr serializer function. typedef std::function&lt; void(void \*, std::unique\_ptr&lt; void, **EmptyDeleter**&lt; void &gt; &gt; &, std::type\_info const &)&gt; **UniqueSerializer**  
Unique ptr serializer function.

## [Public Attributes](#Public_Attributes)

std::map&lt; std::string, **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::InputBindingMap&lt; Archive &gt;"A structure holding a map from type name strings to input 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\*, std::shared\_ptr&lt;void&gt; &, std::type\_info const &)&gt; **cereal::detail::InputBindingMap**&lt; Archive &gt;::SharedSerializer](#template_class_Archive__typedef_std::function_void%28void*,_std::shared_ptr_void__&,_std::type_info_const_&%29__)

Shared ptr serializer function. Serializer functions return nothing and take an archive as their first parameter (will be cast properly inside the function, a shared\_ptr (or unique\_ptr for the unique case) of any base type, and the type id of said base type as the third parameter. Internally it will properly be loaded and cast to the correct type.

# [Author](#Author)

Generated automatically by Doxygen for cereal from the source code.

Sat Oct 10 2026 08:08:15 cereal

---

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