![]() |
Home | Libraries | People | FAQ | More |
Add an element to the end.
void
push_back(
value
const& v);
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.
Amortized constant.
Strong guarantee. Calls to memory_resource::allocate
may throw.
Name |
Description |
---|---|
|
The value to insert. A copy will be made using the container's
associated |