Skip to content

mp_units::utility::spherical_vector::spherical_vector

Construct from quantity

Synopsis

Declared in <mp-units/utility/spherical_vector.h>

template<auto VR,
         /* implementation-defined */ V>
  requires requires(const quantity<VR, V>& v) { v.numerical_value_in(get_unit(RadiusRef)); }
[[nodiscard]] constexpr explicit spherical_vector(quantity<VR, V> const& v);

Return Value

Note

The return value should not be discarded.

Parameters

NameDescription
vThe object to copy construct from