std::queue::push(3)
Hey bestie π this is the std::queue::push(3) page from the C++ Standard Libary manual β yes, the header really spells it βLibary,β and yes, the title shows up twice like itβs manifesting main character energy. We respect the lore π
π NAME π
std::queue::push - std::queue::push
Thatβs the name, bestie. The manpage said it twice, and honestly? Iconic. π
β¨ Synopsis β¨
void push( const value_type& value );
void push( value_type&& value ); (since C++11)
Pushes the given element value to the end of the queue. Slay.
- Effectively calls
c.push_back(value). - Effectively calls
c.push_back(std::move(value)).
πΈ Parameters πΈ
valueβ the value of the element to push β¨
π¦ Return value π¦
(none) β literally none, bestie. The return value is the void. π
π₯ Complexity π₯
Equal to the complexity of Container::push_back. No cap. π
π Example π
The Example section is empty in the original β no example code here, just vibes and a tiny little silence π
π See also π
emplaceβ constructs element in-place at the end(C++11)(public member function)β¨popβ removes the first element(public member function)π
Source: http://cppreference.com Β· version/date: 2024.06.10 β mwah, bestie, go push your elements responsibly πβ¨
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms