path::root_path Method

Retrieves the root path of the stored file name.

path root_path() const;

Return Value

A path object that contains the root path.

Remarks

A root path combines the prefix of the file name together with the root.

Requirements

Header: filesystem

Namespace: std::tr2::sys

See Also

Reference

path Class (C++ Standard Template Library)

<filesystem>