The rbegin() is a function in C++ STL. It returns a reverse iterator which points to the last element of the map. The reverse iterator iterates in reverse order and incrementing it means moving towards beginning of map.
r_i rbegin(); const_r_i rbegin() const;
It does not except any parameters.
Return Value: This method throws a reverse iterator to the reverse beginning of the sequence container.
Map contains following elements in reverse order e = 5 d = 4 c = 3 b = 2 a = 1
- map rbegin() function in C++ STL
- deque rbegin() function in C++ STL
- vector rbegin() and rend() function in C++ STL
- multiset rbegin() and rend() function in C++ STL
- list rbegin() and rend() function in C++ STL
- multimap rbegin in C++ STL
- set::rbegin() and set::rend() in C++ STL
- array::rbegin() and array::rend() in C++ STL
- Function Overloading vs Function Overriding in C++
- What happens when a virtual function is called inside a non-virtual function in C++
- log() function in C++
- exp() function C++
- fma() function in C++
- div() function in C++
- p5.js | arc() Function
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.