Boost.URL

    • Quick Look
    • URLs
      • Parsing
      • Containers
      • Segments
      • Params
      • Normalization
      • String Token
      • Percent Encoding
      • Formatting
    • Customization
      • Parse Rules
      • Character Sets
      • Compound Rules
      • Ranges
      • RFC 3986
    • Examples
      • QR Code
      • Finicky
      • mailto URLs
      • Magnet Link
      • File Router
      • Router
      • Sanitizing URLs
    • Reference
      • Concepts
        • CharSet
        • Rule
        • StringToken
      • Help Card
  • boost::urls::segments_ref::erase

boost::urls::segments_ref::erase

Erase segments

Synopsis

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

iterator
erase(iterator pos) noexcept;

Description

This function removes a segment.

All iterators that are equal to pos or come after are invalidated.

Linear in this->url().encoded_resource().size().

Throws nothing.

Return Value

An iterator to one past the removed segment.

Parameters

Name Description

pos

An iterator to the segment.

Created with MrDocs