boost::pfr::names_as_array — Creates a std::array from names of fields of an simple aggregate T.
std::array
T
// In header: <boost/pfr/core_name.hpp> template<typename T> ();
Example: