cppreference.com
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
View
Edit
History
Actions
std::filesystem::path::
~path
From cppreference.com
<
cpp
|
filesystem
|
path
C++
Compiler support
Freestanding and hosted
Language
Standard library
Standard library headers
Named requirements
Feature test macros
(C++20)
Language support library
Concepts library
(C++20)
Metaprogramming library
(C++11)
Diagnostics library
General utilities library
Strings library
Containers library
Iterators library
Ranges library
(C++20)
Algorithms library
Numerics library
Localizations library
Input/output library
Filesystem library
(C++17)
Regular expressions library
(C++11)
Concurrency support library
(C++11)
Execution support library
(C++26)
Technical specifications
Symbols index
External libraries
[edit]
Filesystem library
Classes
filesystem::path
filesystem::filesystem_error
filesystem::directory_entry
filesystem::directory_iterator
filesystem::recursive_directory_iterator
filesystem::file_status
filesystem::space_info
filesystem::file_type
filesystem::perms
filesystem::perm_options
filesystem::copy_options
filesystem::directory_options
filesystem::file_time_type
Functions
filesystem::absolute
filesystem::canonical
filesystem::weakly_canonical
filesystem::relative
filesystem::proximate
filesystem::copy
filesystem::copy_file
filesystem::copy_symlink
filesystem::create_directory
filesystem::create_directories
filesystem::create_hard_link
filesystem::create_symlink
filesystem::create_directory_symlink
filesystem::current_path
filesystem::exists
filesystem::equivalent
filesystem::file_size
filesystem::hard_link_count
filesystem::last_write_time
filesystem::permissions
filesystem::read_symlink
filesystem::remove
filesystem::remove_all
filesystem::rename
filesystem::resize_file
filesystem::space
filesystem::status
filesystem::symlink_status
filesystem::temp_directory_path
File types
filesystem::is_block_file
filesystem::is_character_file
filesystem::is_directory
filesystem::is_empty
filesystem::status_known
filesystem::is_fifo
filesystem::is_other
filesystem::is_regular_file
filesystem::is_socket
filesystem::is_symlink
[edit]
std::filesystem::path
Constants
path::native_format
path::generic_format
path::auto_format
Member functions
path::path
path::~path
path::operator=
path::assign
path::append
path::operator/=
path::concat
path::operator+=
path::clear
path::make_preferred
path::remove_filename
path::replace_filename
path::replace_extension
path::swap
path::compare
path::begin
path::end
path::c_str
path::native
path::operator string_type
path::string
path::u8string
path::u16string
path::u32string
path::wstring
path::generic_string
path::generic_u8string
path::generic_u16string
path::generic_u32string
path::generic_wstring
path::lexically_normal
path::lexically_relative
path::lexically_proximate
Path decomposition
path::root_name
path::root_directory
path::root_path
path::relative_path
path::parent_path
path::filename
path::stem
path::extension
path::empty
path::has_root_path
path::has_root_name
path::has_root_directory
path::has_relative_path
path::has_parent_path
path::has_filename
path::has_stem
path::has_extension
path::is_absolute
path::is_relative
Non-member functions
operator==
operator!=
operator<
operator<=
operator>
operator>=
operator<=>
(until C++20)
(until C++20)
(until C++20)
(until C++20)
(until C++20)
(C++20)
operator/
operator<<
operator>>
swap
(std::filesystem::path)
hash_value
u8path
Helper Classes
hash
<std::filesystem::path>
formatter
<std::filesystem::path>
(C++26)
[edit]
~path
(
)
;
(since C++17)
Destroys the path object.