|
queue::pushpublic member function
void push ( const T& x ); Insert element Adds a new element at the end of the queue, after its current last element. The content of this new element is initialized to a copy of x.This member function effectively calls the member function push_back of the underlying container object. Parameters
Return valuenoneExample
The example uses push to add a new elements to the queue, which are then popped out in the same order. ComplexityConstant.See also
|