Return whether a path is absolute.
Declared in <bdls_pathutil.h>
static
bool
isAbsolute(
std::string_view const& path,
int rootEnd = -1);
Return true if the specified path is absolute (has a root), and false otherwise. If the optionally specified rootEnd offset is non-negative, it is taken as the position in path of the character following the root. See []and Performance). See also for the definition of root.
true if path is absolute, and false otherwise
| Name | Description |
|---|---|
| path | filesystem path to examine |
| rootEnd | if non-negative, position in path of the character following the root |