| cereal::traits::is_same_archive< ArchiveT, CerealArchiveT >(3) | Library Functions Manual | cereal::traits::is_same_archive< ArchiveT, CerealArchiveT >(3) |
NAME
cereal::traits::is_same_archive< ArchiveT, CerealArchiveT > - Checks if the provided archive type is equal to some cereal archive type.
SYNOPSIS
#include </home/build/include/cereal/details/traits.hpp>
Inherits std::integral_constant< bool, std::is_same< detail::decay_archive< ArchiveT >, CerealArchiveT >::value >.
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 );
Author
Generated automatically by Doxygen for cereal from the source code.
| Mon Oct 26 2026 20:39:03 | cereal |