push_back overloads

Synopses

Declared in <bslstl_vector.h>

Append to the end of this vector the specified move‐insertable value. value is left in a valid but unspecified state. If an exception is thrown (other than by the move constructor of a non‐copy‐insertable value_type), *this is unaffected. Throw std::length_error if size() == max_size(). This method requires that the (template parameter) type VALUE_TYPE be move‐insertable into this vector (see {Requirements on VALUE_TYPE}).

Append to the end of this vector a copy of the specified value. 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}).

void
push_back(short const& value);

Created with MrDocs