[#BloombergLP-bdls-PathUtil-hasLeaf]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/PathUtil.adoc[PathUtil]::hasLeaf
:relfileprefix: ../../../
:mrdocs:

Return `true` if the specified `path` has a filename following the root, and `false` otherwise&period; If the optionally specified `rootEnd` offset is non&hyphen;negative, it is taken as the position in `path` of the character following the root&period; See &lsqb;&rsqb;and Performance)&period; See also  for the definition of root&period;

== Synopsis

Declared in `&lt;bdls&lowbar;pathutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
bool
hasLeaf(
    std::string&lowbar;view const& path,
    int rootEnd = &hyphen;1);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
