pfr::get_name — Returns name of a field with index I in simple aggregate T.
I
T
// In header: <pfr/core_name.hpp> template<std::size_t I, typename T> constexpr std::string_view get_name();
Example:
struct my_struct { int i, short s; }; assert(pfr::get_name<0, my_struct>() == "i"); assert(pfr::get_name<1, my_struct>() == "s");