Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This is an older version of Boost and was released in 2024. The current version is 1.90.0.
Access the specified element, with bounds checking.
valueconst& at(string_viewkey,boost::source_locationconst& loc = BOOST_CURRENT_LOCATION) const&;
Returns a reference to the mapped value of the element that matches
key, otherwise throws.
Constant on average, worst case linear in size().
Strong guarantee.
A reference to the mapped value.
|
Name |
Description |
|---|---|
|
|
The key of the element to find. |
|
|
|
|
Type |
Thrown On |
|---|---|
boost::system::system_error |
if no such element exists. |