std::filesy...stem::path)(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

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 β€” swap swaps 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