boost::urls::segments_ref::operator=

Assignment

Synopsis

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

segments_ref&
operator=(segments_ref const& other);

» more...

segments_ref&
operator=(segments_view const& other);

» more...

segments_ref&
operator=(std::initializer_list<core::string_view> init);

» more...

Description

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

All iterators are invalidated.

NOTE

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

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

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

Strong guarantee.

Calls to allocate may throw.

@{

Parameters

Name Description
other

The segments to assign.

init

The list of segments to assign.

Created with MrDocs