[#mp_units-system_reference-operator_subs]
= xref:mp_units.adoc[mp&lowbar;units]::xref:mp_units/system_reference.adoc[system&lowbar;reference]::operator&lsqb;&rsqb;
:relfileprefix: ../../
:mrdocs:

Subscript operator

== Synopsis

Declared in `&lt;mp&hyphen;units&sol;framework&sol;system&lowbar;reference&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;&sol;&ast; implementation-defined &ast;&sol; U&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/reference.adoc[reference&lt;decltype(Q), U&gt;]
operator&lsqb;&rsqb;(U rhs) const;
----

== Return Value

Quantity reference type

== Parameters

[cols=2]
|===
| Name
| Description
| *rhs*
| The right operand
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
