cpp/filesystem/directory entry/exists

Checks whether the pointed-to object exists. Effectively returns or, respectively (note that  follows symlinks to their targets).

Return value
if the referred-to filesystem object exists.