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

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

okay so this page is std::experi...stem::path)(3), and it comes from the C++ Standard Libary manual (yes, that’s the spelling on the page, and we’re keeping it πŸ’…). It’s a tiny little page about swapping two paths, and honestly it ate.

πŸ’– NAME πŸ’–

std::experimental::filesystem::swap(std::experimental::filesystem::path) β€” std::experimental::filesystem::swap(std::experimental::filesystem::path)

not me repeating the exact same name twice, but that’s literally what the NAME section says, so we’re keeping the whole thing, no cap.

✨ Synopsis ✨

void swap( path& lhs, path& rhs );  (filesystem TS)

This exchanges the state of lhs with that of rhs. Effectively calls lhs.swap(rhs). That’s it, that’s the function, and it’s iconic for being so simple. πŸ’«

πŸŽ€ Parameters πŸŽ€

  • lhs, rhs β€” paths whose states to swap

Two paths, one job: swap their states. slay. 🫢

🌸 Return value 🌸

(none)

It’s giving absolutely nothing back, bestie β€” the original literally says (none). Zero return value, zero drama. πŸ’€

πŸ¦‹ Exceptions πŸ¦‹

noexcept specification: noexcept

So the exception situation is noexcept energy. No cap. ✨

πŸ‘‘ See also πŸ‘‘

  • swap β€” swaps two paths (public member function)

iykyk, it’s the member-function bestie of this free-function moment. πŸ‘‘

πŸ’… Categories πŸ’…

  • Noindexed pages
  • unconditionally noexcept

πŸ™ˆ Hidden categories πŸ™ˆ

  • Pages with unreviewed unconditional noexcept template
  • Pages with unreviewed noexcept template

mwah πŸ’‹ cute sign-off time: source is http://cppreference.com, version/date is 2024.06.10, and the page is std::experi...stem::path)(3) β€” bye bestie, go swap those paths! πŸŒˆπŸ¦‹

πŸ“¦ where this page comes from