...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
const& at(std::size_t
pos,boost::source_location
const& loc = BOOST_CURRENT_LOCATION) const&;
This function is used to access elements of the underlying array, or throw an exception if the value is not an array.
Constant.
Strong guarantee.
Name |
Description |
---|---|
|
A zero-based array index. |
|
|
this->as_array(loc).at( pos, loc )
.