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

◆ operator[]() [2/3]

template<typename... Ts>
template<std::size_t I>
decltype(auto) kumi::record< Ts >::operator[] ( index_t< I > ) &
inlineconstexprnoexcept

Extracts the Ith field from a kumi::record.

Note
Does not participate in overload resolution if I is not in [0, sizeof...(Ts)).
Template Parameters
ICompile-time index of the field to access
Returns
A reference to the selected field of current record.

Example: