| Home | Libraries | People | FAQ | More

###### value::at (2 of 2 overloads)

Access an element, with bounds checking.

<h7> Synopsis </h7>

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

<h7> Description </h7>

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

<h7> Complexity </h7>

Constant.

<h7> Exception Safety </h7>

Strong guarantee.

<h7> Parameters </h7>

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

<h7> Return Value </h7>

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