Copy constructor

Synopsis

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

template<
    auto R2,
    typename Rep2>
requires detail::QuantityConstructibleFrom<quantity, quantity<R2, Rep2>>
constexpr
explicit(!implicitly_convertible(get_quantity_spec(R2), quantity_spec) || !std::convertible_to<Rep2, rep>)
quantity(quantity<R2, Rep2> const& q);

Parameters

Name

Description

q

The object to copy construct from

Created with MrDocs