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. SyntaxParameterIt does not contain any parameter. Return valueIt returns a constant reverse iterator referring to the element preceding the first element of the deque container. ExampleLet'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
|