Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the master branch, built from commit 68cc668162.
PrevUpHomeNext
segments_ref::operator= (1 of 3 overloads)

Assignment.

Synopsis
segments_ref&
operator=(
    segments_ref const& other);
Description

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

All iterators are invalidated.

Remarks

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.

Parameters

Name

Description

other

The segments to assign.


PrevUpHomeNext