kumi v3.1.0
Exquisite Epidote
 
Loading...
Searching...
No Matches

◆ field_value_of()

template<typename T >
constexpr decltype(auto) kumi::field_value_of ( T &&  t)
inlineconstexprnoexcept

Extracts the value from a kumi::field_capture or returns the parameter.

Note
If the unqualified type of T is not a field_capture, simply forwards the parameter
Template Parameters
TThe type to unwrap
Parameters
tA forwarding reference to the input object.
Returns
A forwarded value of the unwrapped object.