[#boost-urls-segments_encoded_base-is_absolute]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/segments_encoded_base.adoc[segments&lowbar;encoded&lowbar;base]::is&lowbar;absolute
:relfileprefix: ../../../
:mrdocs:

Returns true if this references an absolute path&period;

== Synopsis

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/segments_encoded_base.hpp#L180[boost&sol;url&sol;segments&lowbar;encoded&lowbar;base&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
is&lowbar;absolute() const noexcept;
----

== Description

Absolute paths always start with a forward slash (&apos;&sol;&apos;)&period;

== Example
[,cpp]
----
assert( url_view( "/path/to/file.txt" ).encoded_segments().is_absolute() == true );
----
== Complexity
Constant&period;

== Exception Safety
Throws nothing&period;

== Return Value

`true` if the path is absolute, otherwise `false`&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
