| Home | Libraries | People | FAQ | More

###### array::erase (1 of 2 overloads)

Erase elements from the container.

<h7> Synopsis </h7>

    iterator
    erase(
        const_iterator pos);

<h7> Description </h7>

The element at `pos` is removed.

<h7> Complexity </h7>

Constant plus linear in `std::distance(pos, end())`

<h7> Exception Safety </h7>

No-throw guarantee.

<h7> Parameters </h7>

Name | Description
--- | ---
`pos` | Iterator to the element to remove

<h7> Return Value </h7>

Iterator following the last removed element. If the iterator `pos` refers to the last element, the `end()` iterator is returned.