Referencestdvectorclear member function std::vector::clear Header<vector>Draft[vector.overview]Scopestd::vectorcppreferencestd::vector::clear ↗ Synopsis constexpr void clear() noexcept;