16 #ifndef OPENKALMAN_COLLECTIONS_GET_PATTERN_HPP 17 #define OPENKALMAN_COLLECTIONS_GET_PATTERN_HPP 23 #include "patterns/descriptors/Any.hpp" 32 template<pattern_collection P, values::index I>
33 constexpr
pattern decltype(
auto)
35 template<
typename P,
typename I, std::enable_if_t<
36 pattern_collection<P> and values::index<I>,
int> = 0>
37 constexpr decltype(
auto)
56 template<std::
size_t i, pattern_collection P>
57 constexpr
pattern decltype(
auto)
59 template<std::
size_t i,
typename P, std::enable_if_t<pattern_collection<P>,
int> = 0>
60 constexpr decltype(
auto)
64 return get_pattern(std::forward<P>(p), std::integral_constant<std::size_t, i>{});
Definition for pattern_collection.
constexpr auto get_size(Arg &&arg)
Get the size of a sized object (e.g, a collection)
Definition: get_size.hpp:224
decltype(auto) constexpr get_pattern(P &&p, I i)
Get a pattern within a pattern_collection.
Definition: get_pattern.hpp:39
constexpr bool pattern
An object describing the characteristics (e.g., dimensions, wrapping structure) of an index...
Definition: pattern.hpp:31
Definition of the Dimensions class.
decltype(auto) constexpr to_value_type(Arg &&arg)
Convert, if necessary, a fixed or dynamic value to its underlying base type.
Definition: to_value_type.hpp:28
A structure representing the dimensions associated with of a particular index.
Definition: Dimensions.hpp:42
Definition for patterns::pattern.
The namespace for features relating to patterns::pattern object.
Definition: collection_compares_with.hpp:24
constexpr detail::all_closure all
a std::ranges::range_adaptor_closure which returns a view to all members of its collection argument...
Definition: all.hpp:70
std::conditional_t< sized< T >, size_of< T >, values::unbounded_size_t > size_of_t
The type of the argument's size, which will satisfy values::size.
Definition: size_of.hpp:69
Inclusion file for collections.
constexpr bool size_compares_with
T and U are sizes that compare in a particular way based on parameter comp.
Definition: size_compares_with.hpp:98
decltype(auto) constexpr get_element(Arg &&arg, I i)
A generalization of std::get and the range subscript operator.
Definition: get_element.hpp:124