16 #ifndef OPENKALMAN_MAKE_ATTACH_PATTERNS_HPP 17 #define OPENKALMAN_MAKE_ATTACH_PATTERNS_HPP 19 #include "patterns/patterns.hpp" 35 template <
typename N,
typename P>
51 template<
typename Arg>
52 constexpr decltype(
auto)
56 return std::forward<Arg>(arg).nested_object();
58 return std::forward<Arg>(arg);
68 template<indexible Arg, pattern_collection_for<Arg> P>
70 template<
typename Arg,
typename P, std::enable_if_t<
71 indexible<Arg> and pattern_collection_for<P, Arg>,
int> = 0>
73 constexpr decltype(
auto)
76 if constexpr (patterns::euclidean_pattern_collection<P>)
Definition: attach_patterns.hpp:33
decltype(auto) constexpr attach_patterns(Arg &&arg, P &&p)
Attach a pattern_collection to an indexible object.
Definition: attach_patterns.hpp:74
constexpr bool value
T is a fixed or dynamic value that is reducible to a number.
Definition: value.hpp:45
decltype(auto) constexpr detach_patterns(Arg &&arg)
If the argument is a pattern_adapter, detach the patterns::pattern_collection.
Definition: attach_patterns.hpp:53
The root namespace for OpenKalman.
Definition: basics.hpp:34
Definition for pattern_adapter.
An adapter that attaches a pattern_collection to an indexible object.
Definition: pattern_adapter.hpp:38
Definition for pattern_collection_for.
Definition for indexible.