Clear the contents while preserving the capacity

Synopsis

Declared in header <boost/url/url_base.hpp>

void
clear() noexcept;

Description

Postconditions

this->empty() == true

Complexity

Constant.

Exception Safety

No-throw guarantee.