cereal::SizeTag&lt; T &gt;(3) Library Functions Manual cereal::SizeTag&lt; T &gt;(3)

# [NAME](#NAME)

cereal::SizeTag&lt; T &gt; - A wrapper around size metadata.

# [SYNOPSIS](#SYNOPSIS)

#include &lt;/home/build/include/cereal/details/helpers.hpp&gt;

## [Public Member Functions](#Public_Member_Functions)

**SizeTag** (T &&sz)

## [Public Attributes](#Public_Attributes)

Type **size**

## [Related Symbols](#Related_Symbols)

(Note that these are not member symbols.)  
template&lt;class T&gt; SizeTag&lt; T &gt; **make\_size\_tag** (T &&sz)  
Creates a size tag from some variable.

# [Detailed Description](#Detailed_Description)

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

class cereal::SizeTag&lt; T &gt;"A wrapper around size metadata.

This class provides a way for archives to have more flexibility over how they choose to serialize size metadata for containers. For some archive types, the size may be implicitly encoded in the output (e.g. JSON) and not need an explicit entry. Specializing serialize or load/save for your archive and SizeTags allows you to choose what happens.

# [Author](#Author)

Generated automatically by Doxygen for cereal from the source code.

Sat Oct 10 2026 08:08:15 cereal

---

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