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 a snapshot of the master branch, built from commit 682d8fbea2.
PrevUpHomeNext
array::at (1 of 3 overloads)

Access an element, with bounds checking.

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

Returns a reference to the element specified at location pos, with bounds checking. If pos is not within the range of the container, an exception of type boost::system::system_error is thrown.

Complexity

Constant.

Parameters

Name

Description

pos

A zero-based index.

Exceptions

Type

Thrown On

boost::system::system_error

pos >= size().


PrevUpHomeNext