A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://en.cppreference.com/w/cpp/../cpp/algorithm/../symbol_index/../filesystem/path/is_absrel.html below:

std::filesystem::path::is_absolute,is_relative - cppreference.com

bool is_absolute() const;

(1) (since C++17)

bool is_relative() const;

(2) (since C++17)

Checks whether the path is absolute or relative. An absolute path is a path that unambiguously identifies the location of a file without reference to an additional starting location. The first version returns true if the path, in native format, is absolute, false otherwise; the second version the other way round.

[edit] Parameters

(none)

[edit] Return value

1) true if the path is absolute, false otherwise.

2) false if the path is absolute, true otherwise.

[edit] Exceptions

May throw implementation-defined exceptions.

[edit] Notes

The path "/" is absolute on a POSIX OS, but is relative on Windows.

[edit] See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4