cereal
A C++11 library for serialization
cereal::traits::is_same_archive< ArchiveT, CerealArchiveT > Struct Template Reference

Checks if the provided archive type is equal to some cereal archive type. More...

#include </build/libcereal-SAfJB3/libcereal-1.3.2+dfsg/include/cereal/details/traits.hpp>

Inheritance diagram for cereal::traits::is_same_archive< ArchiveT, CerealArchiveT >:

Detailed Description

template<class ArchiveT, class CerealArchiveT>
struct cereal::traits::is_same_archive< ArchiveT, CerealArchiveT >

Checks if the provided archive type is equal to some cereal archive type.

This automatically does things such as std::decay and removing any other wrappers that may be on the Archive template parameter.

Example use:

// example use to disable a serialization function
template <class Archive, EnableIf<cereal::traits::is_same_archive<Archive, cereal::BinaryOutputArchive>::value> = sfinae>
void save( Archive & ar, MyType const & mt );

The documentation for this struct was generated from the following file: