nlohmann::basic_json::at

access specified array element with bounds checking

Synopsis

Declared in <nlohmann/json.hpp>

const_reference
at(size_type idx) const;

Return Value

const reference to the element at index idx

Parameters

NameDescription
idxindex of the element to access