mp_units::scaled_unit

Unit being a scaled version of another unit

Synopsis

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

template<
    UnitMagnitude auto M,
    Unit U>
requires (M != detail::unit_magnitude<>{} && M != mag<1>)
struct scaled_unit final
    : /* implementation-defined */

Description

NOTE

User should not instantiate this type! It is not exported from the C++ module. The library will instantiate this type automatically based on the unit arithmetic equation provided by the user.

Base Classes

NameDescription
/* implementation-defined */

Type Aliases

Name
_base_type_

Static Data Members

Name
_mag_
_reference_unit_

Template Parameters

NameDescription
Mmagnitude describing the scale factor
Ureference unit being scaled