Skip to content

mp_units::quantity::operator V_

Conversion to V_

Synopsis

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

template<typename V_, std::constructible_from<rep> Value = std::remove_cvref_t<V_>>
  requires detail::ExplicitFromNumber<reference>
[[nodiscard]] constexpr explicit operator V_() const& noexcept;

Return Value

The object converted to V_

Note

The return value should not be discarded.