[#boost-urls-segments_encoded_base-is_absolute] = xref:boost/urls/segments_encoded_base/is_absolute.adoc[boost::urls::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#L180[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. == Return Value `true` if the path is absolute, otherwise `false`. [.small]#Created with https://www.mrdocs.com[MrDocs]#