[#boost-urls-segments_ref-2constructor] = xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/segments_ref.adoc[segments_ref]::segments_ref :relfileprefix: ../../../ :mrdocs: Constructor == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/segments_ref.hpp#L93[boost/url/segments_ref.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:boost/urls/segments_ref.adoc[segments_ref](xref:boost/urls/url_base.adoc[url_base]& u) noexcept; ---- [.small]#xref:boost/urls/segments_ref.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr xref:boost/urls/segments_ref/2constructor-09.adoc[segments_ref](xref:boost/urls/segments_ref.adoc[segments_ref] const& other) = default; ---- [.small]#xref:boost/urls/segments_ref/2constructor-09.adoc[_» more..._]# == Description After construction, both views reference the same url. Ownership is not transferred; the caller is responsible for ensuring the lifetime of the url extends until it is no longer referenced. === Postconditions [,cpp] ---- &this->url() == &other.url(); ---- === Complexity Constant. === Exception Safety Throws nothing. == Parameters |=== | Name | Description | *other* | The other view. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#