Append a copy of value to the end of this vector.

Synopsis

Declared in <bslstl_vector.h>

void
push_back(VALUE_TYPE const& value);

Description

If an exception is thrown, *this is unaffected. Throw std::length_error if size() == max_size(). This method requires that the (template parameter) type VALUE_TYPE be copy‐constructible (see {Requirements on VALUE_TYPE}).

Parameters

Name

Description

value

element to append

Created with MrDocs