ECSTASY
All in the name
Loading...
Searching...
No Matches
ecstasy::serialization::concepts::has_extraction_operator Concept Reference

Concept to check if a type can be saved with a serializer using the extraction operator. More...

#include <has_extraction_operator.hpp>

Concept definition

template<typename S, typename T>
concept ecstasy::serialization::concepts::has_extraction_operator = requires(S &s, const T &t) {
requires std::derived_from<S, ISerializer>;
{ t >> s } -> std::same_as<S &>;
}
Concept to check if a type can be saved with a serializer using the extraction operator.

Detailed Description

Concept to check if a type can be saved with a serializer using the extraction operator.

Template Parameters
SSerializer type.
TType to save.
Parameters
[in]sSerializer.
[in]tType to save.
Author
Andréas Leroux (andre.nosp@m.as.l.nosp@m.eroux.nosp@m.@epi.nosp@m.tech..nosp@m.eu)
Since
1.0.0 (2024-06-24)

Definition at line 33 of file has_extraction_operator.hpp.