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 the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
value::at (2 of 2 overloads)

Access an element, with bounds checking.

Synopsis
value const&
at(
    std::size_t pos) const;
Description

This function is used to access elements of the underlying array, or throw an exception if the value is not an array.

Complexity

Constant.

Exception Safety

Strong guarantee.

Parameters

Name

Description

pos

A zero-based array index.

Return Value

this->as_array().at( pos ).


PrevUpHomeNext