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
Access the specified element, with bounds checking.
boost::system::result<valueconst & > try_at(string_viewkey) const noexcept;
Returns boost::system::result containing a reference to the
mapped value of the element that matches key.
Otherwise the result contains an error_code.
No-throw guarantee.
|
Name |
Description |
|---|---|
|
|
The key of the element to find. |
Constant on average, worst case linear in size().