[#BloombergLP-bdls-PathUtil-isRelative] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/PathUtil.adoc[PathUtil]::isRelative :relfileprefix: ../../../ :mrdocs: Return whether a path is relative. == Synopsis Declared in `<bdls_pathutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static bool isRelative( std::string_view const& path, int rootEnd = ‐1); ---- == Description Return `true` if the specified `path` is relative (lacks 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. == Return Value `true` if `path` is relative, and `false` otherwise == Parameters [cols="1,4"] |=== | Name| Description | *path* | filesystem path to examine | *rootEnd* | if non‐negative, position in `path` of the character following the root |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#