|
stack::pushpublic member function
void push ( const T& x ); Add element Adds a new element at the top of the stack, above its current top 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
Output:
ComplexityConstant.See also
|