OpenKalman
Public Types | Public Member Functions | Static Public Attributes | List of all members
OpenKalman::values::fixed_value< C, constant > Struct Template Reference

Public Types

using value_type = std::decay_t< decltype(value)>
 
using type = fixed_value
 

Public Member Functions

constexpr operator value_type () const
 
constexpr value_type operator() () const
 
template<typename T , std::enable_if_t< fixed_value_of< T >::value==value, int > = 0>
constexpr fixed_value (const T &)
 
template<typename T , std::enable_if_t< fixed_value_of< T >::value==value, int > = 0>
constexpr fixed_valueoperator= (const T &)
 

Static Public Attributes

static constexpr auto value
 

Member Data Documentation

◆ value

template<typename C, auto... constant>
constexpr auto OpenKalman::values::fixed_value< C, constant >::value
static
Initial value:
= []
{
if constexpr (sizeof...(constant) == 1) return static_cast<C>((constant,...));
else if constexpr (complex<C>) return interface::number_traits<std::decay_t<C>>::make_complex(constant...);
else return C {constant...};
}()

The documentation for this struct was generated from the following file: