:relfileprefix: ../../../
[#1BAB3433832A245AA83C1C72C7FD984F78E7E16F]

= Function segments_base::is_absolute

pass:v,q[Returns true if this references an absolute path.]


== Synopsis

Declared in header `</boost/url/segments_base.hpp#L175[boost/url/segments_base.hpp,window=blank_]>`

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

== Description

pass:v,q[Absolute paths always start with a] pass:v,q[forward slash ('/').]

=== Example
[,cpp]
----
assert( url_view( "/path/to/file.txt" ).segments().is_absolute() == true );
----

=== Complexity
pass:v,q[Constant.]

=== Exception Safety
pass:v,q[Throws nothing.]



== Return Value

* `bool` 




