다음을 통해 공유


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>