Function template for_each_field_with_name
boost::pfr::for_each_field_with_name
Synopsis
template<typename T, typename F>
( value, func);
Description
Calls func
for each field with its name of a value
Example:
(
Parameters: |
value
|
To each field of this variable will be the func applied. |
func
|
must have one of the following signatures:
any_return_type func(std::string_view name, U&& field) // field of value is perfect forwarded to function
any_return_type func(std::string_view name, U&& field, std::size_t i)
any_return_type func(std::string_view name, U&& value, I i) // Here I is an std::integral_constant<size_t, field_index>
|
|