Circus 0.0.1-alpha
C++ Serialization Framework
Loading...
Searching...
No Matches
circus::traits::IsSerializable Concept Reference

Concept that checks whether a type has a .serialize(std::ostream&) method. More...

#include <circus_traits.hpp>

Concept definition

template<typename T>
concept circus::traits::IsSerializable = requires(T t) {
{
t.serialize(std::declval<std::ostream &>())
};
}
Concept that checks whether a type has a .serialize(std::ostream&) method.
Definition circus_traits.hpp:47

Detailed Description

Concept that checks whether a type has a .serialize(std::ostream&) method.