VOOZH about

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

⇱ multimap rbegin in C++ STL - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

multimap rbegin in C++ STL

Last Updated : 11 Jul, 2025
multimap::rbegin() is a built-in-function in C++ STL which returns an iterator pointing to the last element of the container. Syntax:
multimap_name.rbegiin()
Parameters: The function does not take any parameter. Return Value: The function returns a reverse iterator pointing to the last element of the container. (Note: Reverse iterators iterate backwards i.e when they are increased they move towards the beginning of the container) The following two programs illustrates the function. Program 1 Output
c = 50
Program 2
Output
c = 50
c = 40
b = 30
b = 20
a = 10
Comment
Article Tags: