nlohmann::ordered_map::at

accesses the element with the given key, with bounds checking

Synopsis

Declared in <nlohmann/ordered_map.hpp>

T&
at(key_type const& key);

Exceptions

NameThrown on
std::out_of_rangeif the container does not have an element with the given key

Return Value

reference to the value associated with key

Parameters

NameDescription
key [in]key of the element to access