C++ Deque pop_back()

C++ Deque pop_back() function removes the last element from the the deque container and the size of the deque is reduced by one.

Syntax

Parameter

It does not contain any parameter.

Return value

It does not return any value.

Example

Let's see a simple example

Output:

1 2 3 4 

In this example, pop_back() function removes the last element i.e 5 from the deque.


Next TopicC++ Deque



Latest Courses