| Home | Libraries | People | FAQ | More

###### array::operator[] (2 of 2 overloads)

Access an element.

<h7> Synopsis </h7>

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

<h7> Description </h7>

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

<h7> Precondition </h7>

`pos < size()`

<h7> Complexity </h7>

Constant.

<h7> Parameters </h7>

Name | Description
--- | ---
`pos` | A zero-based index