cpp/experimental/fs/recursive directory iterator/depth

Returns the number of directories from the starting directory to the currently iterated directory, i.e. the current depth of the directory hierarchy.

The starting directory has depth of $0$, its subdirectories have depth $1$, etc.

The behavior is undefined if is the end iterator.

Parameters
(none)

Return value
Current depth of the directory hierarchy.

Exceptions
Throws nothing.