Compartir a través de


basic_path::relative_path Method

Retrieves the relative path of the stored file name.

basic_path relative_path() const;

Return Value

A basic_path object that contains the relative path. Any leading forward slashes or backslashes are removed.

Remarks

A relative path has one or more path elements that are delimited by sequences of forward slashes or backslashes.

Requirements

Header: filesystem

Namespace: std::tr2::sys

See Also

Reference

basic_path Class

<filesystem>