mp_units::mag_constant

A named Magnitude constant identified by its symbol and, where supported, its value

Synopsis

Declared in <mp-units/framework/unit_magnitude.h>

template<
    symbol_text Symbol,
    long double Value>
requires (Value > 0)
struct mag_constant;

Static Data Members

NameDescription
_symbol_ The constant's textual symbol
_value_ The constant's numeric value

Derived Classes

NameDescription
pi_c A convenient Magnitude constant for pi, which we can manipulate like a regular number.