std::queue::front(3)

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

🌸 NAME 🌸

okay bestie, welcome to the std::queue::front(3) page from the C++ Standard Libary manual πŸ’…βœ¨

std::queue::front - std::queue::front

✨ Synopsis ✨

reference front();
const_reference front() const;

Returns reference to the first element in the queue. This element will be the first element to be removed on a call to pop(). Effectively calls c.front().

🫢 Parameters 🫢

(none)

πŸ’– Return value πŸ’–

Reference to the first element.

πŸ”₯ Complexity πŸ”₯

Constant.

πŸ‘€ See also πŸ‘€

  • back β€” access the last element (public member function)
  • pop β€” removes the first element (public member function)

mwah πŸ’‹ this cutie came from http://cppreference.com, version/date 2024.06.10, page std::queue::front(3) πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from