[#nlohmann-basic_json-00-operator_subs-010a]
= xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-00.adoc[basic&lowbar;json]::operator&lsqb;&rsqb;
:relfileprefix: ../../
:mrdocs:

access specified object element

== Synopsis

Declared in `&lt;nlohmann&sol;json&period;hpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class KeyType&gt;
requires detail&colon;&colon;is&lowbar;usable&lowbar;as&lowbar;basic&lowbar;json&lowbar;key&lowbar;type&lt;basic&lowbar;json&lowbar;t, KeyType&gt;&colon;&colon;value
xref:nlohmann/basic_json-00/const_reference.adoc[const&lowbar;reference]
operator&lsqb;&rsqb;(KeyType&& key) const;
----

== Return Value

the type of an element const reference

== Parameters

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


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