cereal::memory\_detail::PtrWrapper&lt; T &gt;(3) Library Functions Manual cereal::memory\_detail::PtrWrapper&lt; T &gt;(3)

# [NAME](#NAME)

cereal::memory\_detail::PtrWrapper&lt; T &gt; - A wrapper class to notify cereal that it is ok to serialize the contained pointer.

# [SYNOPSIS](#SYNOPSIS)

#include &lt;/home/build/include/cereal/types/memory.hpp&gt;

## [Public Member Functions](#Public_Member_Functions)

**PtrWrapper** (T &&p)  
**PtrWrapper** (PtrWrapper const &)=default  
PtrWrapper & **operator=** (PtrWrapper const &)=delete

## [Public Attributes](#Public_Attributes)

T & **ptr**

# [Detailed Description](#Detailed_Description)

## [template&lt;class T&gt;](#template_class_T_)

struct cereal::memory\_detail::PtrWrapper&lt; T &gt;"A wrapper class to notify cereal that it is ok to serialize the contained pointer.

This mechanism allows us to intercept and properly handle polymorphic pointers

# [Author](#Author)

Generated automatically by Doxygen for cereal from the source code.

Mon Oct 26 2026 20:39:03 cereal

---

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