An attribute that decides whether a member of a struct is (de)serialized at all depending on external data, typically previously deserialized.
More...
#include <uSer.hh>
template<auto Ref>
struct uSer::Dyn::Optional< Ref >
An attribute that decides whether a member of a struct is (de)serialized at all depending on external data, typically previously deserialized.
This can be applied to any type. The reference can be:
- A non-static member function of the surrounding struct
- A free function (=function pointer)
- A static member function of any class (=function pointer)
- A pointer to a global object that has operator () overloaded
- A member variable pointer to a member of the surrounding struct, which must be convertible to bool. In the first four cases, the return type must be convertible to bool. For cases 2-3, a reference to the struct is passed as an argument.
The documentation for this struct was generated from the following file:
- /home/erlkoenig/Projects/CPP/uSer/uSer/uSer.hh