|
|
using | value_type = std::decay_t< decltype(value)> |
| |
|
using | type = fixed_value |
| |
|
|
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_value & | operator= (const T &) |
| |
|
| static constexpr auto | value |
| |
◆ value
template<typename C, auto... constant>
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: