Remove all elements from this vector.

Synopsis

Declared in <bslstl_vector.h>

void
clear() noexcept;

Description

Remove all elements from this vector making its size 0. Note that although this vector is empty after this method returns, it preserves the same capacity it had before the method was called.

Created with MrDocs