mp_units::named_unit<Symbol, U, QS, PO>

Specialization for a unit with special name, valid only for a specific quantity and point origin

Synopsis

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

template<
    symbol_text Symbol,
    Unit auto U,
    /* implementation-defined */ auto QS,
    PointOrigin auto PO>
requires (!Symbol.empty()) && (get_dimension(QS) == get_dimension(detail::get_associated_quantity(U))) &&
          detail::is_positive_canonical_unit_mag<U>
struct named_unit<Symbol, U, QS, PO>
    : ::_base_type_

Description

The same as the above but additionally associates the unit with a point origin.

Base Classes

NameDescription
::_base_type_

Type Aliases

NameDescription
_base_type_ Exposition-only alias naming this specialization's base type.

Static Data Members

NameDescription
_point_origin_ The point origin associated with this unit
_quantity_spec_ The quantity this unit is limited to
_symbol_ Unique unit identifier

Template Parameters

NameDescription
Symbola short text representation of the unit
Unita unit for which we provide a special name
QuantitySpeca specification of a quantity to be measured with this unit
PointOrigina point origin associated with this unit