Definition for kumi::record class and functions.
More...
|
|
template<typename CharT , typename Traits > |
| std::basic_ostream< CharT, Traits > & | operator<< (std::basic_ostream< CharT, Traits > &os, record const &t) noexcept |
| | Inserts a kumi::record in an output stream.
|
| |
|
template<typename... Us>
requires ( named_equality_comparable<record,record<Us...>> ) |
| constexpr auto | operator== (record const &self, record< Us... > const &other) noexcept |
| | Compares a record with an other for equality.
|
| |
|
template<str... Fields, typename... Ts>
requires ( sizeof...(Fields) == sizeof...(Ts) ) |
| constexpr auto | kumi::tie (Ts &... ts) -> record< field_capture< Fields, Ts & >... > |
| | Creates a kumi::record of lvalue references to its arguments.
|
| |
| template<str... Fields, typename... Ts> |
| constexpr auto | forward_as_record (Ts &&... ts) -> record< field_capture< Fields, Ts && >... > |
| | Creates a kumi::record of forwarding references to its arguments.
|
| |
| template<typename... Ts> |
| constexpr auto | make_record (Ts &&...ts) -> record< std::unwrap_ref_decay_t< Ts >... > |
| | Creates a record object, deducing the target type from the types of arguments.
|
| |
| template<record_type Type> |
| constexpr auto | to_ref (Type &&r) |
| | Creates a kumi::record of references given a reference to a kumi::record_type.
|
| |
|
| template<std::size_t I, typename... Ts> |
| decltype(auto) constexpr | get (record< Ts... > &r) noexcept |
| | Extracts the Ith field from a kumi::record.
|
| |