boost::urls::segments_encoded_ref::operator= :: Boost Libraries Documentation

# boost::urls::segments_encoded_ref::operator=

Assignment

## Synopsis

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

    segments_encoded_ref&
    operator=(segments_encoded_view const& other);

## Description

The existing contents are replaced by a copy of the other segments.

All iterators are invalidated.

| None of the character buffers referenced by `other` may overlap the buffer of the underlying url, or else the behavior is undefined.

## Effects

    this->assign( other.begin(), other.end() );

## Complexity

Linear in `other.buffer().size()`.

## Exception Safety

Strong guarantee. Calls to allocate may throw.

## Return Value

A reference to this object.

## Parameters

Name | Description
other | The segments to assign.

Created with MrDocs