cereal
A C++11 library for serialization
|
A wrapper around data that should be serialized after all non-deferred data. More...
#include </build/libcereal-SAfJB3/libcereal-1.3.2+dfsg/include/cereal/details/helpers.hpp>
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... | |
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.
|
inline |
Constructs a new NameValuePair.
v | The 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. |