16 #ifndef OPENKALMAN_VALUES_FIXED_NUMBER_OF_HPP 17 #define OPENKALMAN_VALUES_FIXED_NUMBER_OF_HPP 19 #include <type_traits> 25 #ifndef __cpp_concepts 28 template<
typename T,
typename =
void>
43 template<
typename T,
typename =
void>
49 template<values::fixed T>
58 static constexpr
auto get_value()
67 return std::decay_t<T>{}();
72 using value_type = std::decay_t<decltype(get_value())>;
73 static constexpr value_type
value {get_value()};
75 constexpr
operator value_type()
const {
return value; }
76 constexpr value_type operator()()
const {
return value; }
89 #endif //OPENKALMAN_VALUES_FIXED_NUMBER_OF_HPP Definition: tuple_reverse.hpp:103
constexpr bool value
T is numerical value or is reducible to a numerical value.
Definition: value.hpp:31
constexpr auto fixed_number_of_v
Helper template for fixed_number_of.
Definition: fixed_number_of.hpp:84
The fixed number associated with a values::fixed.
Definition: fixed_number_of.hpp:45
Definition for values::abs.
Definition: constant_coefficient.hpp:25
Definition: fixed_number_of.hpp:29