boost::urls::segments_ref::clear :: Boost Libraries Documentation

# boost::urls::segments_ref::clear

Clear the contents of the container

## Synopsis

Declared in `<boost/url/segments_ref.hpp>`

    void
    clear() noexcept;

## Description

All iterators are invalidated.

## Effects

    this->url().set_encoded_path( "" );

## Postconditions

    this->empty() == true

## Complexity

Linear in `this‐>url().encoded_query().size() + this‐>url().encoded_fragment().size()`.

## Exception Safety

Throws nothing.

Created with MrDocs