Namespaces
Variants

std::filesystem::path::swap

From cppreference.com
 
 
 
std::filesystem::path
 
void swap( path& other ) noexcept;
(since C++17)

Swaps the contents (both native and generic format) of *this and other.

Parameters

other - another path to exchange the contents with

Complexity

Constant.

See also

overloads the std::swap algorithm
(function) [edit]