Construct from Q
Synopsis
Declared in <mp‐units/framework/quantity.h>
template<QuantityLike Q>
requires detail::QuantityConstructibleFrom<quantity, detail::quantity_like_type<Q>>
[[nodiscard]]
constexpr
explicit(quantity_like_traits<Q>::explicit_import || !std::convertible_to<detail::quantity_like_type<Q>, quantity<R, Rep>>)
quantity(Q const& q);
Return Value
|
Note
|
The return value should not be discarded. |
Parameters
Name |
Description |
q |
The object to copy construct from |
Created with MrDocs