[#nlohmann-ordered_map-operator_subs-08] = xref:nlohmann.adoc[nlohmann]::xref:nlohmann/ordered_map.adoc[ordered_map]::operator[] :relfileprefix: ../../ :mrdocs: Subscript operators == Synopses Declared in `<nlohmann/ordered_map.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- T& xref:nlohmann/ordered_map/operator_subs-07.adoc[operator[]](xref:nlohmann/ordered_map/key_type.adoc[key_type] const& key); ---- [.small]#xref:nlohmann/ordered_map/operator_subs-07.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- T const& xref:nlohmann/ordered_map/operator_subs-04.adoc[operator[]](xref:nlohmann/ordered_map/key_type.adoc[key_type] const& key) const; ---- [.small]#xref:nlohmann/ordered_map/operator_subs-04.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class KeyType> requires detail::is_usable_as_key_type<key_compare, key_type, KeyType>::value T const& xref:nlohmann/ordered_map/operator_subs-0f.adoc[operator[]](KeyType&& key) const; ---- [.small]#xref:nlohmann/ordered_map/operator_subs-0f.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class KeyType> requires detail::is_usable_as_key_type<key_compare, key_type, KeyType>::value T& xref:nlohmann/ordered_map/operator_subs-06.adoc[operator[]](KeyType&& key); ---- [.small]#xref:nlohmann/ordered_map/operator_subs-06.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#