Skip to content

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::RepConstructibleFrom<rep, Value>)
constexpr quantity(Value val, R2) = delete;

Parameters

NameDescription
valThe object to construct from