Javatpoint Logo
Javatpoint Logo

C++ Deque crend()

C++ Deque crend() function is used to return an iterator pointing to the element preceding the first element of the deque container. An iterator can be incremented or decremented but it cannot modify the content of deque.

Syntax

Parameter

It does not contain any parameter.

Return value

It returns a constant reverse iterator referring to the element preceding the first element of the deque container.

Example

Let's see a simple example

Output:

Reverse deque:potpal

In this example, while loop iterates till citr is not equal to c.crend().


Next TopicC++ Deque



Help Others, Please Share

facebook twitter pinterest