cpp/filesystem/path/replace filename

Replaces a single filename component with.

Equivalent to:.