[#nlohmann-ordered_map-operator_subs-08]
= xref:nlohmann.adoc[nlohmann]::xref:nlohmann/ordered_map.adoc[ordered&lowbar;map]::operator&lsqb;&rsqb;
:relfileprefix: ../../
:mrdocs:

Subscript operators

== Synopses

Declared in `&lt;nlohmann&sol;ordered&lowbar;map&period;hpp&gt;`


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
T&
xref:nlohmann/ordered_map/operator_subs-07.adoc[operator&lsqb;&rsqb;](xref:nlohmann/ordered_map/key_type.adoc[key&lowbar;type] const& key);
----

[.small]#xref:nlohmann/ordered_map/operator_subs-07.adoc[_» more&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
T const&
xref:nlohmann/ordered_map/operator_subs-04.adoc[operator&lsqb;&rsqb;](xref:nlohmann/ordered_map/key_type.adoc[key&lowbar;type] const& key) const;
----

[.small]#xref:nlohmann/ordered_map/operator_subs-04.adoc[_» more&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class KeyType&gt;
requires detail&colon;&colon;is&lowbar;usable&lowbar;as&lowbar;key&lowbar;type&lt;key&lowbar;compare, key&lowbar;type, KeyType&gt;&colon;&colon;value
T&
xref:nlohmann/ordered_map/operator_subs-06.adoc[operator&lsqb;&rsqb;](KeyType&& key);
----

[.small]#xref:nlohmann/ordered_map/operator_subs-06.adoc[_» more&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class KeyType&gt;
requires detail&colon;&colon;is&lowbar;usable&lowbar;as&lowbar;key&lowbar;type&lt;key&lowbar;compare, key&lowbar;type, KeyType&gt;&colon;&colon;value
T const&
xref:nlohmann/ordered_map/operator_subs-0f.adoc[operator&lsqb;&rsqb;](KeyType&& key) const;
----

[.small]#xref:nlohmann/ordered_map/operator_subs-0f.adoc[_» more&period;&period;&period;_]#


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