std::filesystem::swap(std::filesystem::path)
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 
 
 
 
 
 
 
 
 
 
(until C++20)(until C++20)(until C++20)(until C++20)(until C++20)(C++20)
Defined in header 
 
 
<filesystem> 
 void swap( std::filesystem::path & lhs, std::filesystem::path & rhs ) noexcept;
 
 (since C++17) 
Exchanges the state of lhs with that of rhs. Effectively calls lhs.swap(rhs).
[edit] Parameters
 lhs, rhs
 -
 paths whose states to swap
[edit] Return value
(none)