Assignment
<include/boost/url/segments_encoded_ref.hpp>
segments_encoded_ref&
operator=(segments_encoded_ref const& other);
» more...
segments_encoded_ref&
operator=(segments_encoded_view const& other);
» more...
segments_encoded_ref&
operator=(std::initializer_list<pct_string_view> init);
» more...
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.
this->assign( other.begin(), other.end() );
Calls to allocate may throw.
@{
Name | Thrown on |
---|---|
[object Object] |
list contains an invalid percent-encoding. |
Name | Description |
---|---|
other | The segments to assign. |
init | The list of segments to assign. |