| Home | Libraries | People | FAQ | More

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

Add an element to the end.

<h7> Synopsis </h7>

    void
    push_back(
        value const& v);

<h7> Description </h7>

This appends a copy of `v` to the container's elements. If `capacity() < size() + 1`, a reallocation occurs first, and all iterators and references are invalidated. Any past-the-end iterators are always invalidated.

<h7> Complexity </h7>

Amortized constant.

<h7> Exception Safety </h7>

Strong guarantee. Calls to `memory_resource::allocate` may throw.

<h7> Parameters </h7>

Name | Description
--- | ---
`v` | The value to insert. A copy will be made using container's associated `memory_resource`.