BloombergLP::bdljsn::JsonObject::operator[]

Subscript operators

Synopses

Declared in <bdljsn_json.h>

Return a modifiable reference to the member associated with key.

Json&
operator[](std::string_view const& key);
» more...

Return a non-modifiable reference to the member associated with key.

Json const&
operator[](std::string_view const& key) const;
» more...

Return Value

  • modifiable reference to the member associated with key
  • a non-modifiable reference to the element at the specified position

Parameters

NameDescription
keyUTF-8 member name