std::filesy...::path::swap(3)
πΈ std::filesystem::path::swap π
okay bestie, welcome to the std::filesystem::path::swap(3) page β yes it's from the C++ Standard Libary (that's the manual name, we don't fix typos here, we respect the lore π«Ά), and yes it's exactly as iconic as it sounds. sit down, sip ur drink, let's get into it β¨
β¨ NAME β¨
std::filesystem::path::swap β literally just std::filesystem::path::swap, no notes, that's the whole name, periodt π
π¦ Synopsis π¦
void swap( path& other ) noexcept; (1) (since C++17)
so this bad boy swaps the contents of *this and other β and when we say contents we mean both the native format and the generic format, like a full glow-up trade, no cap π
ngl the noexcept is right there in the signature and she's thriving β this one is not gonna throw at you π
π Parameters π
otherβ another path to exchange the contents with π§ like, ur swapping ur whole vibe with hers, mutual main character energy
β Return value β
(none) β she gives you nothing back because the swapping is the gift, iykyk π
π₯ Complexity π₯
Constant. constant!! not linear, not "depends on ur mood", Constant β she ate and left zero crumbs π
πΈ See also πΈ
swap(std::filesystem::path)β swaps two paths π« (C++17) (function)
ok that's the whole page, short and slay and to the point πβ¨ this one came straight from http://cppreference.com, dated 2024.06.10, and honestly? iconic of them. bye bestie, go swap some paths responsibly ππ¦π
π¦ 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