std::swap(s...stacktrace)(3)

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

πŸ’– NAME πŸ’–

okay so bestie, welcome to the std::swap(s...stacktrace)(3) page β€” it lives in the C++ Standard Libary, and the actual NAME is std::swap(std::basic_stacktrace). Yes, that is the whole name. She is literally that. πŸ’…

πŸ¦‹ Synopsis πŸ¦‹

Defined in header <stacktrace>.

template< class Allocator >

void swap( std::basic_stacktrace<Allocator>& lhs,
(since C++23)
std::basic_stacktrace<Allocator>& rhs )

    noexcept(noexcept(lhs.swap(rhs)));

Specializes the std::swap algorithm for std::basic_stacktrace. Swaps the contents of lhs and rhs. Equivalent to lhs.swap(rhs);. The (since C++23) is just sitting there in the synopsis like it owns the place, iconic behavior honestly. ✨

🌸 Parameters 🌸

  • lhs, rhs β€” stacktraces whose contents to swap. That’s the whole parameter list, and honestly she ate. 🫢

πŸŽ€ Return value πŸŽ€

(none) β€” nothing comes back, bestie. The swap happens; the return value does not. πŸ’€

⭐ Complexity ⭐

Constant. Lowkey the most chill complexity line ever β€” constant, no cap. 🌈

πŸŽ€ Example πŸŽ€

This section is incomplete.

Reason: no example.

not me showing up to the function page with no example 😭

πŸ‘‘ See also πŸ‘‘

  • swap β€” swaps the contents (public member function)

🧚 Category 🧚

  • * Todo no example

that’s the whole vibe check, bestie. source: http://cppreference.com; version/date: 2024.06.10; page tag: std::swap(s...stacktrace)(3). stay iconic, fr fr πŸ’–βœ¨

πŸ“¦ where this page comes from