std::queue::back(3)

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

πŸ¦‹ std::queue::back(3) πŸ¦‹

okay so this one comes from the C++ Standard Libary manual β€” yes, that spelling is exactly what was up top, and we're keeping it, bestie πŸ’–.

✨ NAME ✨

std::queue::back - std::queue::back

🌸 Synopsis 🌸

reference back();
const_reference back() const;

Returns reference to the last element in the queue. This is the most recently pushed element. Effectively calls c.back().

🫢 Parameters 🫢

  • (none) β€” no parameters, not a single one πŸ’…

πŸŽ€ Return value πŸŽ€

Reference to the last element. That's it, that's the return value, periodt.

⭐ Complexity ⭐

Constant.

πŸ‘€ See also πŸ‘€

  • front β€” access the first element (public member function)
  • push β€” inserts element at the end (public member function)

source/version: http://cppreference.com Β· date: 2024.06.10 β€” bye bestie, go slay those queues πŸ’–πŸ¦‹βœ¨

πŸ“¦ where this page comes from