|
KUMI v5.0.0
Gorgeous Garnet
|
Utilities to manipulate functions and types in a functional way. More...
Topics | |
| kumi::bind_back | |
| Returns a callable object with ts bound as its trailing arguments, reducing c arity. | |
| kumi::bind_front | |
| Returns a callable object with ts bound as its leading arguments, reducing c arity. | |
| kumi::function::adjacent_index_sequence | |
| A helper alias template generating the index map associated to the adjacent unicity operation. | |
| kumi::function::bit_and | |
| Callable object matching the kumi::boolean_and monoid, usable with kumi::algorithm. | |
| kumi::function::bit_or | |
| Callable object matching the kumi::boolean_or monoid, usable with kumi::algorithm. | |
| kumi::function::bit_xor | |
| Callable object matching the kumi::boolean_xor monoid, usable with kumi::algorithm. | |
| kumi::function::cartesian_strides | |
| A helper alias template computing the strides associated to the cartesian product operation. | |
| kumi::function::cat_index_sequence | |
| A helper alias template computing the index map associated to the concatenation operation. | |
| kumi::function::fill_index_sequence | |
| A helper alias template generating an index sequence repeating a constant value. | |
| kumi::function::get_or | |
| Returns the Ith element of t if t is a kumi::product_type, an instance of v otherwise. | |
| kumi::function::indexes_for | |
| A helper alias template extracting the projection map associated to a given kumi::concepts::product_type. | |
| kumi::function::multiplies | |
| Callable object matching the kumi::numeric_prod monoid, usable with kumi::algorithm. | |
| kumi::function::plus | |
| Callable object matching the kumi::numeric_add monoid, usable with kumi::algorithm. | |
| kumi::function::remove_index_sequence | |
| A helper alias template generating the index sequence associated to the remove operation. | |
| kumi::function::reverse_index_sequence | |
| A helper alias template computing the reversed index sequence. | |
| kumi::function::rotate_index_sequence | |
| A helper alias template computing the index_sequence associated to the rotation operation. | |
| kumi::function::select_index_sequence | |
| A helper alias template generating the positions of the true flags in a pack of booleans. | |
| kumi::function::shift_index_sequence | |
| A helper alias template computing linear indexing translations. | |
| kumi::function::size_or_v | |
| If T is a kumi::product_type, returns its number of elements, and V otherwise. | |
| kumi::function::slice_index_sequence | |
| A helper alias template computing the index map associated to the slicing (begin, end, step) operation. | |
| kumi::function::unique_index_sequence | |
| A helper alias template generating the index map associated to the unique operations. | |
| kumi::invoke | |
| Invoke the Callable object c with a pack of arguments. | |
| kumi::invoke_r | |
| Invoke the Callable object c with a pack of arguments with return type R. | |
Classes | |
| class | kumi::function::boolean_and |
| logical and monoid whose identity element is true. More... | |
| class | kumi::function::boolean_or |
| logical or monoid whose identity element is false. More... | |
| class | kumi::function::boolean_xor |
| logical xor monoid whose identity element is false. More... | |
| class | kumi::function::foldable< T > |
| Functional wrapper for values to facilitate pipelined transformations. More... | |
| class | kumi::function::numeric_add |
| Addition monoid whose identity element is 0. More... | |
| class | kumi::function::numeric_prod |
| Multiplication monoid whose identity element is 1. More... | |
| class | kumi::function::scannable< F, V > |
| Functional wrapper that accumulates state during a transformation chain. More... | |
Typedefs | |
| template<std::size_t I, typename T, typename U> | |
| using | kumi::function::element_or_t = std::remove_cvref_t<decltype(kumi::function::get_or<I>(kumi::declval<T>(), kumi::declval<U>()))> |
| Computes the Ith element type of a kumi::product_type, or a fallback type U otherwise. | |
Utilities to manipulate functions and types in a functional way.
| using kumi::function::element_or_t = std::remove_cvref_t<decltype(kumi::function::get_or<I>(kumi::declval<T>(), kumi::declval<U>()))> |
Computes the Ith element type of a kumi::product_type, or a fallback type U otherwise.
If T is a kumi::product_type and I is within its size, this alias resolves to element_t<I,T>, otherwise it resolves to U.
| I | Index of the element type to retrieve |
| T | Type to access |
| U | Fallback type |