[#boost-urls-segments_view-operator_assign] = xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/segments_view.adoc[segments_view]::operator= :relfileprefix: ../../../ :mrdocs: Assignment == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/segments_view.hpp#L188[boost/url/segments_view.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr xref:boost/urls/segments_view.adoc[segments_view]& operator=(xref:boost/urls/segments_view.adoc[segments_view] const& other) = default; ---- == Description After assignment, both views reference the same underlying character buffer. Ownership is not transferred; the caller is responsible for ensuring the lifetime of the buffer extends until it is no longer referenced. === Postconditions [,cpp] ---- this->buffer().data() == other.buffer().data() ---- === Complexity Constant === Exception Safety Throws nothing [.small]#Created with https://www.mrdocs.com[MrDocs]#