cereal
A C++11 library for serialization
Public Member Functions | Public Attributes | Related Functions | List of all members
cereal::DeferredData< T > Class Template Reference

A wrapper around data that should be serialized after all non-deferred data. More...

#include </home/shane/workspace/cereal/include/cereal/details/helpers.hpp>

Inheritance diagram for cereal::DeferredData< T >:
cereal::detail::DeferredDataCore

Public Member Functions

 DeferredData (T &&v)
 Constructs a new NameValuePair. More...
 

Public Attributes

Type value
 

Related Functions

(Note that these are not member functions.)

template<class T >
DeferredData< T > defer (T &&value)
 Marks data for deferred serialization. More...
 

Detailed Description

template<class T>
class cereal::DeferredData< T >

A wrapper around data that should be serialized after all non-deferred data.

This class is used to demarcate data that can only be safely serialized after any data not wrapped in this class.

Constructor & Destructor Documentation

◆ DeferredData()

template<class T >
cereal::DeferredData< T >::DeferredData ( T &&  v)
inline

Constructs a new NameValuePair.

Parameters
vThe value to defer. Ideally this should be an l-value reference so that the value can be both loaded and saved to. If you pass an r-value reference, the DeferredData will store a copy of it instead of a reference. Thus you should only pass r-values in cases where this makes sense, such as the result of some size() call.

The documentation for this class was generated from the following files: