[#mp_units-quantity_spec-0a6-operator_subs] = xref:mp_units.adoc[mp_units]::xref:mp_units/quantity_spec-0a6.adoc[quantity_spec<QS, Args...>]::operator[] :relfileprefix: ../../ :mrdocs: == Synopsis Declared in `<mp‐units/framework/quantity_spec.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename Self, xref:mp_units/UnitOf.adoc[UnitOf<Self{}>] U> [[nodiscard]] consteval xref:mp_units/Reference.adoc[Reference] auto operator[](this Self, U); ---- == Return Value [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== [.small]#Created with https://www.mrdocs.com[MrDocs]#