...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Return a character with bounds checking.
boost::system::result
< char const & > try_at(std::size_t
pos) const noexcept;
Returns boost::system::result
containing a reference to the
character specified at location pos
,
if pos
is within the
range of the string. Otherwise the result contains an error_code
.
Strong guarantee.
Name |
Description |
---|---|
|
A zero-based index to access. |
Constant.