VOOZH about

URL: https://www.geeksforgeeks.org/cpp/multimap-rend-in-c-stl/

⇱ multimap rend in C++ STL - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

multimap rend in C++ STL

Last Updated : 11 Jul, 2025
multimap::rend() is a built-in function in C++ STL which returns a reverse iterator pointing to the theoretical element preceding to the first element of the multimap container. Syntax
multimap_name.rend()
Parameters: The function does not take any parameter. Return ValueThe function returns a reverse iterator pointing to the reverse end of the multimap container i.e a reverse iterator pointing to the position right before the first element of the multimap. The iterator returned by multimap::rend() cannot be dereferenced. The following 2 programs illustrates the function Output
c = 40
c = 30
b = 20
a = 10
Program 2
Output
a = 10
Comment
Article Tags: