|
KUMI v5.0.0
Gorgeous Garnet
|
Traits and extension points for any product type. More...
Topics | |
| kumi::are_uniform_product_types_v | |
| Checks if a list of product types are homogeneous and of the same underlying type. | |
| kumi::has_static_size_v | |
| Detects if a given kumi::container instance size is static. | |
| kumi::is_comparable_v | |
| Checks if the expression u == v is well-formed. | |
| kumi::is_container_v | |
| Traits detecting types behaving like a kumi::container. | |
| kumi::is_equality_comparable_v | |
| Checks if two product types are comparable for equality. | |
| kumi::is_equivalent_v | |
| Checks if two product types are equivalent. | |
| kumi::is_ordered_v | |
| Checks if the expression a < b is well-formed. | |
| kumi::is_projection_map_v | |
| Checks if a type can be used as a kumi::projection_map. | |
| kumi::is_record_type_v | |
| Opt-in traits for types behaving like a kumi::record_type. | |
Classes | |
| struct | kumi::apply_traits< Traits, T, Seq > |
| Unpacks a product type and applies its element types as arguments to a meta-function. More... | |
| struct | kumi::common_product_type< Ts > |
| Extracts the common product_type of a parameter pack. More... | |
| struct | kumi::map_traits< Traits, T, Seq > |
| Applies a unary meta-function to each element of a product type. More... | |
Typedefs | |
| template<typename T> | |
| using | kumi::container_type_t = decltype(kumi_implementation_defined) |
| Provides access to the type of the elements of a kumi::concepts::container. | |
| template<std::size_t I, typename T> | |
| using | kumi::element_t = std::tuple_element_t<I, std::remove_cvref_t<T>> |
| Provides indexed access to the types of the elements of a kumi::product_type. | |
| template<typename Field, typename T> | |
| using | kumi::field_of_t = decltype(get<kumi_implementation_defined{}>(kumi::declval<T&&>())) |
| The type of the value of T selected by the field Field, resolved by name the same way as kumi::member resolves by index (going through kumi::get). | |
| template<std::size_t I, typename T> | |
| using | kumi::member_t = decltype(get<I>(kumi::declval<T&&>())) |
| Computes the return type of a call to kumi::get. | |
| template<std::size_t I, typename T> | |
| using | kumi::stored_member_t = decltype(kumi_implementation_defined) |
| Computes the return type of a call to kumi::get on a kumi::tuple and unwrap the field returned by kumi::get on a kumi::record. | |
Variables | |
| template<typename... Ts> | |
| constexpr bool | kumi::all_unique_names_v = kumi_implementation_defined |
| Checks if a parameter pack only contains distinct kumi::field names. Evaluates to false if no type is a kumi::field. | |
| template<typename... Ts> | |
| constexpr bool | kumi::all_uniques_v = kumi_implementation_defined |
| Checks if a parameter pack only contains distinct types. | |
| template<typename T> | |
| constexpr std::size_t | kumi::container_size_v = kumi_implementation_defined |
| Returns the statically known number of elements of a kumi::container. | |
| template<typename T, typename U> | |
| constexpr bool | kumi::is_instance_of_v = false |
| Checks if a type is an instance of a specific template. | |
| template<typename T> | |
| constexpr bool | kumi::is_power_type_v = kumi_implementation_defined |
| Opt-in traits for types behaving like a kumi::power_type. | |
| template<typename T> | |
| constexpr bool | kumi::is_product_type_v = kumi_implementation_defined |
| Detects if a type follows the tuple protocol. | |
| template<typename T> | |
| constexpr std::size_t | kumi::size_v = std::tuple_size<std::remove_cvref_t<T>>::value |
| Computes the number of elements of a kumi::product_type. | |
Traits and extension points for any product type.
| using kumi::container_type_t = decltype(kumi_implementation_defined) |
Provides access to the type of the elements of a kumi::concepts::container.
| T | kumi::concepts::container to access |
| using kumi::element_t = std::tuple_element_t<I, std::remove_cvref_t<T>> |
| using kumi::field_of_t = decltype(get<kumi_implementation_defined{}>(kumi::declval<T&&>())) |
The type of the value of T selected by the field Field, resolved by name the same way as kumi::member resolves by index (going through kumi::get).
| Field | A kumi::field describing the sought identifier |
| T | The product type to inspect |
| using kumi::member_t = decltype(get<I>(kumi::declval<T&&>())) |
| using kumi::stored_member_t = decltype(kumi_implementation_defined) |
Computes the return type of a call to kumi::get on a kumi::tuple and unwrap the field returned by kumi::get on a kumi::record.
| I | Index of the type to retrieve |
| T | kumi::product_type to access |
|
inlineconstexpr |
Checks if a parameter pack only contains distinct kumi::field names. Evaluates to false if no type is a kumi::field.
| Ts | The types to access |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Opt-in traits for types behaving like a kumi::power_type.
| T | Type to inspect |
To be treated like a power type, an user defined type must support structured bindings as well as exposing a value_type alias.
|
inlineconstexpr |
Detects if a type follows the tuple protocol.
| T | Type to inspect |
To be treated like a product_type, a user defined type must follow the tuple protocol defined in the standard.