Opts a vector quantity into decomposition into named 1D-vector components
Declared in <mp-units/framework/customization_points.h>
template<QuantitySpec auto QS>
requires (get_character(QS).order == quantity_tensor_order::vector) &&
(!detail::QuantityKindSpec<MP_UNITS_REMOVE_CONST(decltype(QS))>)
struct vector_components;
Specialize for a vector quantity_spec and inherit from vector_axes, listing the per-axis quantity specs in coordinate order (see mp-units/framework/vector_components.h)
template<>
struct mp_units::vector_components<flight_velocity> :
mp_units::vector_axes<forward_velocity, wind_drift, sink_rate> {};
Left undefined (the quantity is not decomposable) unless specialized. Only a concrete vector quantity spec may be decomposed, so a specialization for a non-vector spec or for a kind_of<> quantity kind is ill-formed.
| Name | Description |
|---|---|
| QS | the vector quantity spec being decomposed |