An attribute that defines the size of a container that is a member of a struct to depend on external data, typically previously deserialized.
More...
#include <uSer.hh>
template<auto Ref>
struct uSer::Dyn::Size< Ref >
An attribute that defines the size of a container that is a member of a struct to depend on external data, typically previously deserialized.
This can be applied to C arrays (possibly pointed to by (smart) pointers), std::array, or any other container that supports iterators. 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 std::size_t. In the first four cases, the return type must be convertible to std::size_t. For cases 2-4, 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