cereal::detail::bind\_to\_archives&lt; T, Tag &gt;(3) Library Functions Manual cereal::detail::bind\_to\_archives&lt; T, Tag &gt;(3)

# [NAME](#NAME)

cereal::detail::bind\_to\_archives&lt; T, Tag &gt; - Begins the binding process of a type to all registered archives.

# [SYNOPSIS](#SYNOPSIS)

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

## [Public Member Functions](#Public_Member_Functions)

void **bind** (std::false\_type) const  
Binding for non abstract types. void **bind** (std::true\_type) const  
Binding for abstract types. **bind\_to\_archives** const & **bind** () const  
Binds the type T to all registered archives.

# [Detailed Description](#Detailed_Description)

## [template&lt;class T, class Tag = polymorphic\_binding\_tag&gt;](#template_class_T,_class_Tag_=_polymorphic_binding_tag_)

struct cereal::detail::bind\_to\_archives&lt; T, Tag &gt;"Begins the binding process of a type to all registered archives.

Archives need to be registered prior to this struct being instantiated via the CEREAL\_REGISTER\_ARCHIVE macro. Overload resolution will then force several static objects to be made that allow us to bind together all registered archive types with the parameter type T.

# [Member Function Documentation](#Member_Function_Documentation)

## [template&lt;class T, class Tag = polymorphic\_binding\_tag&gt; **bind\_to\_archives** const & **cereal::detail::bind\_to\_archives**&lt; T, Tag &gt;::bind () const \[inline\]](#template_class_T,_class_Tag_=_polymorphic_binding_tag__)

Binds the type T to all registered archives. If T is abstract, we will not serialize it and thus do not need to make a binding

# [Author](#Author)

Generated automatically by Doxygen for cereal from the source code.

Sat Oct 10 2026 08:08:15 cereal

---

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