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

Name

Description

::_base_type_

Type Aliases

Name

Description

_base_type_

Exposition‐only alias naming this specialization's base type.

Static Data Members

Name

Description

_point_origin_

The point origin associated with this unit

_quantity_spec_

The quantity this unit is limited to

_symbol_

Unique unit identifier

Template Parameters

Name

Description

Symbol

a short text representation of the unit

Unit

a unit for which we provide a special name

QuantitySpec

a specification of a quantity to be measured with this unit

PointOrigin

a point origin associated with this unit

Created with MrDocs