Subscript operator

Synopsis

Declared in <nlohmann/json.hpp>

template<typename BasicJsonType>
requires detail::is_basic_json<BasicJsonType>::value
[[__deprecated__]]
const_reference
operator[](nlohmann::json_pointer<BasicJsonType> const& ptr) const;

Return Value

the type of an element const reference

Parameters

Name

Description

ptr

The right operand

Created with MrDocs