:relfileprefix: ../../../
[#boost-urls-segments_base-is_absolute]

== xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/segments_base.adoc[pass:[segments_base]]::is_absolute


Returns true if this references an absolute path.


=== Synopsis

Declared in header `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/segments_base.hpp#L195[boost/url/segments_base.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
bool
is_absolute() const noexcept;
----

=== Description


Absolute paths always start with a
forward slash ('&sol;').
[,cpp]
----
assert( url_view( "/path/to/file.txt" ).segments().is_absolute() == true );
----

=== Constant.

=== Throws nothing.








