Return whether a path has a leaf following the root.
Synopsis
Declared in <bdls_pathutil.h>
static
bool
hasLeaf(
std::string_view const& path,
int rootEnd = ‐1);
Description
Return true if the specified path has a filename following the 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 has a leaf, and false otherwise
Parameters
Name |
Description |
path |
filesystem path to examine |
rootEnd |
if non‐negative, position in |
Created with MrDocs