#include <ser20/ser20.hpp>
#include <ser20/details/traits.hpp>
Go to the source code of this file.
|
template<class Archive , class T > |
std::enable_if_t< traits::is_same_archive_v< Archive, JSONInputArchive >||traits::is_same_archive_v< Archive, XMLInputArchive >||traits::is_same_archive_v< Archive, YAMLInputArchive >, bool > | ser20::make_optional_nvp (Archive &ar, const char *name, T &&value) |
|
template<class Archive , class T > |
void | ser20::make_optional_nvp (OutputArchive< Archive > &ar, const char *name, T &&value) |
|
template<class Archive , class T , class Predicate > |
void | ser20::make_optional_nvp (OutputArchive< Archive > &ar, const char *name, T &&value, Predicate predicate) |
|
template<class Archive , class T , class Predicate > |
std::enable_if_t< traits::is_same_archive_v< Archive, JSONInputArchive >||traits::is_same_archive_v< Archive, XMLInputArchive >||traits::is_same_archive_v< Archive, YAMLInputArchive >, bool > | ser20::make_optional_nvp (Archive &ar, const char *name, T &&value, Predicate predicate) |
|
◆ CEREAL_OPTIONAL_NVP
#define CEREAL_OPTIONAL_NVP |
( |
| ... | ) |
|
Value:
#define GET_CEREAL_OPTIONAL_NVP_MACRO(_1, _2, _3, NAME,...)
#define CEREAL_OPTIONAL_NVP_2(ar, T)
#define CEREAL_OPTIONAL_NVP_3(ar, T, P)
Definition at line 87 of file cereal_optional_nvp.h.
◆ CEREAL_OPTIONAL_NVP_2
#define CEREAL_OPTIONAL_NVP_2 |
( |
| ar, |
|
|
| T ) |
Value:
std::enable_if_t< traits::is_same_archive_v< Archive, JSONInputArchive >||traits::is_same_archive_v< Archive, XMLInputArchive >||traits::is_same_archive_v< Archive, YAMLInputArchive >, bool > make_optional_nvp(Archive &ar, const char *name, T &&value)
Definition at line 90 of file cereal_optional_nvp.h.
◆ CEREAL_OPTIONAL_NVP_3
#define CEREAL_OPTIONAL_NVP_3 |
( |
| ar, |
|
|
| T, |
|
|
| P ) |
◆ EXPAND
◆ GET_CEREAL_OPTIONAL_NVP_MACRO
#define GET_CEREAL_OPTIONAL_NVP_MACRO |
( |
| _1, |
|
|
| _2, |
|
|
| _3, |
|
|
| NAME, |
|
|
| ... ) |