Skip to content

mp_units::scaled_unit

Unit being a scaled version of another unit

Synopsis

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

template<UnitMagnitude auto M, Unit U>
  requires(M != mag<1>) && detail::SymbolicArg<U>
struct scaled_unit final

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.

Non-Member Functions

NameDescription
cubic
equivalentThe former name of utility::equivalent
get_quantity_spec
get_quantity_spec
get_unit
operator*Multiplication operator
operator*Multiplication operator
operator*Multiplication operator
operator*Multiplication operator
operator*Multiplication operator
operator/Division operator
operator/Division operator
operator/Division operator
operator/Division operator
operator/Division operator
square

Template Parameters

NameDescription
Mmagnitude describing the scale factor
Ureference unit being scaled