std::filesystem::path::swap
From cppreference.com
< cpp | filesystem | path
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
std::filesystem::path
path::swap
(until C++20)(until C++20)(until C++20)(until C++20)(until C++20)(C++20)
void swap( path& other ) noexcept;
(1)
(since C++17)
Swaps the contents (both native and generic format) of *this and other
.
Contents
[edit] Parameters
other
-
another path to exchange the contents with
[edit] Return value
(none)
[edit] Complexity
Constant.