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 either 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

path Class (C++ Standard Template Library)

<filesystem>