Files
2025-10-25 03:02:53 +03:00

3.4 KiB

[fs.path.query]

31 Input/output library [input.output]

31.12 File systems [filesystems]

31.12.6 Class path [fs.class.path]

31.12.6.5 Members [fs.path.member]

31.12.6.5.10 Query [fs.path.query]

🔗

bool empty() const noexcept;

1

#

Returns: true if the pathname in the generic format is empty, otherwise false.

🔗

bool has_root_path() const;

2

#

Returns: !root_path().empty().

🔗

bool has_root_name() const;

3

#

Returns: !root_name().empty().

🔗

bool has_root_directory() const;

4

#

Returns: !root_directory().empty().

🔗

bool has_relative_path() const;

5

#

Returns: !relative_path().empty().

🔗

bool has_parent_path() const;

6

#

Returns: !parent_path().empty().

🔗

bool has_filename() const;

7

#

Returns: !filename().empty().

🔗

bool has_stem() const;

8

#

Returns: !stem().empty().

🔗

bool has_extension() const;

9

#

Returns: !extension().empty().

🔗

bool is_absolute() const;

10

#

Returns: true if the pathname in the native format contains an absolute path ([fs.class.path]), otherwise false.

11

#

[Example 1:

path("/").is_absolute() is true for POSIX-based operating systems, and false for Windows-based operating systems.

— end example]

🔗

bool is_relative() const;

12

#

Returns: !is_absolute().