Share via


basic_path::root_directory Method

Returns the root, if it exists.

string_type root_directory() const;

Return Value

The root, if it exists.

Remarks

The root is a backslash or a forward slash. It follows an optional prefix, and it precedes an optional relative path.

Requirements

Header: filesystem

Namespace: std::tr2::sys

See Also

Reference

basic_path Class

<filesystem>