[#boost-urls-segments_encoded_view-operator_assign]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/segments_encoded_view.adoc[segments&lowbar;encoded&lowbar;view]::operator&equals;
:relfileprefix: ../../../
:mrdocs:


Assignment

== Synopsis


Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/segments_encoded_view.hpp#L192[boost&sol;url&sol;segments&lowbar;encoded&lowbar;view&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:boost/urls/segments_encoded_view.adoc[segments&lowbar;encoded&lowbar;view]&
operator&equals;(xref:boost/urls/segments_encoded_view.adoc[segments&lowbar;encoded&lowbar;view] const&) = default;
----

== Description


After assignment, both views        reference the same underlying character        buffer&period;

Ownership is not transferred&semi; the caller        is responsible for ensuring the lifetime        of the buffer extends until it is no        longer referenced&period;


=== Postconditions

[,cpp]
----
this->buffer().data() == other.buffer().data()
----

=== Complexity

Constant


=== Exception Safety

Throws nothing





[.small]#Created with https://www.mrdocs.com[MrDocs]#
