[#bsl-vector-03-insert-01b] = xref:bsl.adoc[bsl]::xref:bsl/vector-03.adoc[vector<bool>]::insert :relfileprefix: ../../ :mrdocs: Insert at the specified `position` in this vector the specified move‐insertable `value`, and return an iterator referring to the newly inserted element. `value` is left in a valid but unspecified state. If an exception is thrown (other than by the copy constructor, move constructor, assignment operator, or move assignment operator of `VALUE_TYPE`), `this` is unaffected. Throw `std::length_error` if `size() == max_size()`. The behavior is undefined unless `position` is an iterator in the range `[begin() .. end()]` (both endpoints included). This method requires that the (template parameter) type `VALUE_TYPE` be `move‐insertable` into this vector (see {Requirements on `VALUE_TYPE`}). == Synopsis Declared in `<bslstl_vector.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/vector-03/iterator.adoc[iterator] insert( xref:bsl/vector-03/const_iterator.adoc[const_iterator] position, xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef<bool>] value); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#