:relfileprefix: ../../../ [#boost-urls-segments_view-2constructor] == xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/segments_view.adoc[pass:[segments_view]]::segments_view Constructor === Synopsis [source,cpp,subs="verbatim,macros,-callouts"] ---- constexpr xref:boost/urls/segments_view/2constructor-0c.adoc[pass:[segments_view]]() = default; ---- [source,cpp,subs="verbatim,macros,-callouts"] ---- constexpr xref:boost/urls/segments_view/2constructor-0d.adoc[pass:[segments_view]](xref:boost/urls/segments_view.adoc[segments_view] const& other) = default; ---- [source,cpp,subs="verbatim,macros,-callouts"] ---- xref:boost/urls/segments_view/2constructor-0e.adoc[pass:[segments_view]](core::string_view s); ---- === Description Default-constructed segments have zero elements. [,cpp] ---- segments_view ps; ---- [,cpp] ---- return segments_view( "" ); ---- === Constant. === Throws nothing. === Exceptions |=== | Name | Thrown on | ``s`` | contains an invalid path. |=== === Parameters |=== | Name | Description | *s* | The string to parse. |===