std::queue::pop(3)

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

πŸ’– NAME πŸ’–

std::queue::pop - std::queue::pop (the name is the name, iconic) πŸ’…

okay so this is the std::queue::pop(3) page from the C++ Standard Libary man pages β€” welcome to the queue-pop group chat, bestie 🫢✨


✨ Synopsis ✨

void pop();

Removes an element from the front of the queue. Effectively calls c.pop_front(). That's the whole move, no cap πŸŽ€

🩷 Parameters 🩷

  • (none) β€” literally no parameters, she takes zero arguments πŸ’€

πŸŽ€ Return value πŸŽ€

  • (none) β€” nothing comes back out, bestie. It pops, it does not return the popped element πŸ™ˆ

πŸ¦‹ Complexity πŸ¦‹

Equal to the complexity of Container::pop_front. Same energy as that call, periodt πŸ’…

🌈 Example 🌈

the original page has no example here β€” empty section, no cap 😭 (not me leaving this blank on purpose, it's giving "trust the synopsis")

πŸ‘‘ See also πŸ‘‘

  • emplace β€” constructs element in-place at the end (C++11) (public member function)
  • push β€” inserts element at the end (public member function)
  • front β€” access the first element (public member function)

source/version + date sign-off: shoutout to http://cppreference.com and the 2024.06.10 date stamp β€” thanks for hosting the lore, mwah πŸ’‹πŸ«Ά

πŸ“¦ where this page comes from