Namespaces
Variants
Actions

std::filesystem::path::root_directory

From cppreference.com
< cpp‎ | filesystem‎ | path
 
 
 
 
path root_directory() const;
(since C++17)

Returns the root directory of the generic-format path. If the path (in generic format) does not include root directory, returns path().

Contents

[edit] Parameters

(none)

[edit] Return value

The root directory of the path.

[