|
deque::push_backpublic member function
void push_back ( const T& x ); Add element at the end Adds a new element at the end of the deque container, after its current last element. The content of this new element is initialized to a copy of x.This effectively increases the container size by one and invalidates all iterators to the deque, but has no effect on the validity of references to elements of the deque. Parameters
Return valuenoneExample
The example uses push_back to add a new element to the container each time a new integer is read. ComplexityConstant.See also
|