Clear the contents while preserving the capacity

Synopsis

Declared in header </boost/url/url_base.hpp#L164[boost/url/url_base.hpp,window=blank_]>

void
clear() noexcept;

Description

Postconditions

this->empty() == true

Complexity

Constant.

Exception Safety

No-throw guarantee.

Return Value

  • void