std::meta::static_data_members_of
From cppreference.com
| Defined in header <meta>
|
||
consteval std::vector<std::meta::info>
static_data_members_of( std::meta::info type, std::meta::access_context ctx );
|
(since C++26) | |
Returns a std::vector containing reflections of static data members of the class represented by type, filtered by the access context ctx.
Parameters
| type | - | a reflection of complete class type |
| ctx | - | an access context |
Return value
A vector containing each element e of std::meta::members_of(type, ctx) such that std::meta::is_variable(e) is true, preserving the element order.
Exceptions
Throws std::meta::exception unless std::meta::dealias(type) represents a class type that is complete from some point in the evaluation context.
Example
| This section is incomplete Reason: no example |
See also
(C++26) |
obtains the accessible direct members of the reflected class or namespace (function) |
(C++26) |
checks if reflection represents a variable (function) |
(C++26) |
checks if a member is accessible in a given context (function) |