...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Access an element, with bounds checking.
value
&& at(string_view
key,boost::source_location
const& loc = BOOST_CURRENT_LOCATION) &&;
This function is used to access elements of the underlying object, or throw an exception if the value is not an object.
Constant.
Strong guarantee.
Name |
Description |
---|---|
|
The key of the element to find. |
|
|
this->as_object(loc).at( key, loc )
.