16 #ifndef OPENKALMAN_CONSTANT_VALUE_HPP 17 #define OPENKALMAN_CONSTANT_VALUE_HPP 31 template<
typename T> requires constant_object<T> or constant_diagonal_object<T>
32 constexpr std::convertible_to<element_type_of_t<T>>
auto 34 template<
typename T, std::enable_if_t<constant_
object<T> or constant_diagonal_
object<T>,
int> = 0>
40 if constexpr (interface::get_constant_defined_for<T>)
41 return Trait::get_constant(std::forward<T>(t));
45 return internal::get_singular_component(std::forward<T>(t));
Definition for constant_object.
Definition for constant_diagonal_object.
The root namespace for OpenKalman.
Definition: basics.hpp:34
Definition: object_traits.hpp:38
Definition for internal::singular_component.
constexpr auto constant_value(T &&t)
The constant value associated with a constant_object or constant_diagonal_object. ...
Definition: constant_value.hpp:37
constexpr bool fixed
T is a value that is determinable at compile time.
Definition: fixed.hpp:66
Concepts for testing whether object_traits or library_interface definitions exist for a particular ob...
typename element_type_of< T >::type element_type_of_t
helper template for element_type_of.
Definition: element_type_of.hpp:54