Javatpoint Logo
Javatpoint Logo

C++ Vector crend()

This function is used to point the element preceding the first element in the vector container. Itrefers as reverse end.


Consider a vector 'v'. Syntax would be:


It does not contain any parameter.

Return value

It returns the constant reverse iterator pointing to the reverse end in the sequence.

Example 1

Let's see a simple example.

Example 2

Let's see a another simple example



In this example, crend() function access the first element of the vector container.

Next TopicC++ Vector

Youtube For Videos Join Our Youtube Channel: Join Now

Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA