std::experimental::filesystem::path::
clear
From cppreference.com
<
cpp
|
experimental
|
fs
|
path
C++
Language
Standard Library Headers
Freestanding and hosted implementations
Named requirements
Language support library
Concepts library
(C++20)
Diagnostics library
Utilities library
Strings library
Containers library
Iterators library
Ranges library
(C++20)
Algorithms library
Numerics library
Input/output library
Localizations library
Regular expressions library
(C++11)
Atomic operations library
(C++11)
Thread support library
(C++11)
Filesystem library
(C++17)
Technical Specifications
Technical specifications
Filesystem library
(filesystem TS)
Library fundamentals
(library fundamentals TS)
Library fundamentals 2
(library fundamentals 2 TS)
Extensions for parallelism
(parallelism TS)
Extensions for parallelism 2
(parallelism TS v2)
Extensions for concurrency
(concurrency TS)
Concepts
(concepts TS)
Ranges
(ranges TS)
Special mathematical functions
(special math TR)
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::copy_options
filesystem::directory_options
filesystem::file_time_type
Functions
filesystem::absolute
filesystem::system_complete
filesystem::canonical
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
path
Member functions
path::path
path::~path
path::operator=
path::assign
path::append
operator /=
path::concat
operator +=
path::clear
path::make_preferred
path::remove_filename
path::replace_filename
path::replace_extension
path::swap
path::compare
path::c_str
path::native
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::begin
path::end
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
swap(path)
operator==
operator!=
operator<
operator<=
operator>
operator>=
operator/
operator<<
operator>>
u8path
void
clear
(
)
;
(filesystem TS)
Clears the stored pathname.
empty()
is
true
after the call.
Parameters
(none)
Return value
(none)
Exceptions
noexcept
specification:
noexcept