KUMI v5.0.0
Gorgeous Garnet
Loading...
Searching...
No Matches
Record Types and associated Functions

Definitions of kumi::record and associated functions. More...

Classes

class  kumi::record< Ts >
 Fixed-size collection of heterogeneous tagged fields, tags are unique. More...

Record construction

template<kumi::concepts::identifier auto... Fields>
constexpr tie_as_record_t< Fields... > kumi::tie_as_record {}
 Creates a kumi::record of lvalue references to its arguments.
template<kumi::concepts::identifier auto... Fields>
constexpr forward_as_record_t< Fields... > kumi::forward_as_record {}
 Creates a kumi::record of forwarding references to its arguments.
constexpr make_record_t kumi::make_record {}
 Creates a record object, deducing the target type from the types of arguments.

Record conversion

template<kumi::concepts::record_type Type>
constexpr from_record_t< Type > kumi::from_record {}
 Converts a kumi::record to an instance of an arbitrary type that models kumi::record_type.
constexpr to_record_t kumi::to_record {}
 Converts a kumi::concepts::record_type to an instance of kumi::record.