16 #ifndef OPENKALMAN_VALUES_FIXED_VALUE_OF_HPP 17 #define OPENKALMAN_VALUES_FIXED_VALUE_OF_HPP 19 #include <type_traits> 24 #ifndef __cpp_concepts 27 template<
typename T,
typename =
void>
42 template<
typename T,
typename =
void>
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; }
constexpr auto fixed_value_of_v
Helper template for fixed_value_of.
Definition: fixed_value_of.hpp:84
The fixed value associated with a fixed.
Definition: fixed_value_of.hpp:44
constexpr bool value
T is a fixed or dynamic value that is reducible to a number.
Definition: value.hpp:45
Definition: fixed_value_of.hpp:28
Definition for values::abs.
Definition: fixed-constants.hpp:23