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

array::operator[] (3 of 3 overloads)
PrevUpHomeNext

Access an element.

Synopsis
value const&
operator[](
    std::size_t pos) const& noexcept;
Description

Returns a reference to the element specified at location pos. No bounds checking is performed.

Precondition

pos < size()

Complexity

Constant.

Parameters

Name

Description

pos

A zero-based index


PrevUpHomeNext