mrdocs::describe::memberPointers
Pointers to every reflected member of T, in reflection order.
Synopsis
template<class T>
consteval
std::array<member_pointer_t<T>, describedMemberCount<T>()>
memberPointers();
Description
Complements describedMemberCount by giving O(1) access to the i‐th described member: t.*memberPointers<T>()[i]. Requires the members to be homogeneous (a single type), so a plain array indexable at runtime can hold them. Use it to iterate a struct's members generically instead of hand‐writing a per‐member switch.
Return Value
An array with one pointer per reflected member of T.
Created with MrDocs