access specified object element with bounds checking

Synopsis

Declared in <nlohmann/json.hpp>

template<class KeyType>
requires detail::is_usable_as_basic_json_key_type<basic_json_t, KeyType>::value
const_reference
at(KeyType&& key) const;

Return Value

const reference to the element with key key

Parameters

Name

Description

key

key of the element to access

Created with MrDocs