[#boost-urls-segments_encoded_base-is_absolute] = xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/segments_encoded_base.adoc[segments_encoded_base]::is_absolute :relfileprefix: ../../../ :mrdocs: Returns true if this references an absolute path. == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/segments_encoded_base.hpp#L201[boost/url/segments_encoded_base.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool is_absolute() const noexcept; ---- == Description Absolute paths always start with a forward slash ('/'). === Example [,cpp] ---- assert( url_view( "/path/to/file.txt" ).encoded_segments().is_absolute() == true ); ---- === Complexity Constant. === Exception Safety Throws nothing. [.small]#Created with https://www.mrdocs.com[MrDocs]#