! \brief Empties the vector of all elements. * \note * This does not deallocate memory but will invoke destructors * on contained elements. */
| 718 | * on contained elements. |
| 719 | */ |
| 720 | void clear() |
| 721 | { |
| 722 | while(!empty()) { |
| 723 | pop_back(); |
| 724 | } |
| 725 | } |
| 726 | |
| 727 | /*! \brief Appends an element after the last valid element. |
| 728 | * Calling this on a vector that has reached capacity will throw an |