Remove the contents of the container.
void clear();
This function removes all the segments from the path, leaving the underlying URL with an empty path.
empty() == true
Throws nothing.