std::filesy...stem::path)(3)
okay so welcome to std::filesy...stem::path)(3) from the C++ Standard Libary manual β yes bestie, that's the whole header vibe, and we're moving with it. This page is about swap for std::filesystem::path, and it's short, sweet, and lowkey iconic. π
β¨ NAME β¨
std::filesystem::swap(std::filesystem::path)β and the name does the echo thing:std::filesystem::swap(std::filesystem::path). periodt. π
πΈ Synopsis πΈ
Defined in header <filesystem>:
void swap( std::filesystem::path& lhs, std::filesystem::path& rhs )
(since C++17) and the synopsis literally drops noexcept; right there β noted, bestie. β¨
Exchanges the state of lhs with that of rhs. Effectively calls lhs.swap(rhs). That's the whole vibe: hand over the state, no cap. π«Ά
π¦ Parameters π¦
lhs,rhsβ paths whose states to swap. Two path besties trading states, fr fr. π₯
π Return value π
(none)β literally nothing comes back. not me expecting a return value π
π See also π
swapβswapswaps two paths (public member function). iconic behavior, iykyk. π
cute little sign-off: this page is from std::filesy...stem::path)(3), sourced at cppreference.com, version/date 2024.06.10. mwah πβ¨
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms