NDDEM
|
A wrapper around size metadata. More...
#include <helpers.hpp>
Public Member Functions | |
SizeTag (T &&sz) | |
Public Attributes | |
Type | size |
Private Types | |
using | Type = typename std::conditional< std::is_lvalue_reference< T >::value, T, typename std::decay< T >::type >::type |
Private Member Functions | |
SizeTag & | operator= (SizeTag const &)=delete |
Related Functions | |
(Note that these are not member functions.) | |
template<class T > | |
SizeTag< T > | make_size_tag (T &&sz) |
Creates a size tag from some variable. More... | |
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.
|
private |
|
inline |
|
privatedelete |
|
related |
Type cereal::SizeTag< T >::size |