mp_units::quantity::quantity

Constructor

Synopsis

Declared in <mp-units/framework/quantity.h>
template<
    typename Value,
    Reference R2>
requires (equivalent(unit, get_unit(R2{}))) && (!detail::RepConvertibleFrom<rep, Value>)
constexpr
quantity(
    Value val,
    R2) = delete;

Parameters

Name Description
val The object to construct from