Skip to content

mp_units::quantity::quantity

Construct from T

Synopsis

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

template<typename T>
  requires detail::ComposableFromTupleLike<reference, rep, T>
[[nodiscard]] constexpr quantity(T const& components);

Return Value

Note

The return value should not be discarded.

Parameters

NameDescription
componentsThe object to copy construct from