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

Assignment

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:boost/urls/segments_view.adoc[segments&lowbar;view]&
operator&equals;(xref:boost/urls/segments_view.adoc[segments&lowbar;view] const& other) = 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

== Return Value

A reference to this object&period;

== Parameters

[cols=2]
|===
| Name
| Description
| *other*
| The other view&period;
|===


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