Assignment
Synopsis
Declared in header </boost/url/segments_ref.hpp#L157[boost/url/segments_ref.hpp,window=blank_]>
segments_ref&
operator=(const segments_ref& other);
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.
|
Effects
this->assign( other.begin(), other.end() );
Complexity
Linear in other.buffer().size()
.
Exception Safety
Strong guarantee. Calls to allocate may throw. @ {
Return Value
-
``
Parameters
Name | Type |
---|---|
other |
`` |