...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.
boost::system::result
<value
const & > try_at(std::size_t
pos) const noexcept;
Returns boost::system::result
containing a reference to the
element specified at location pos
,
if pos
is within the
range of the container. Otherwise the result contains an error_code
.
No-throw guarantee.
Name |
Description |
---|---|
|
A zero-based index. |
Constant.