![]() |
VOOZH | about |
reverse_iterator set_name.rbegin()Parameters: The function does not take any parameter. Return value: The function returns a reverse iterator pointing to the last element in the container. Program to demonstrate the set::rbegin() method: Program 1:
15 14 12 11 10 The last element in set is 15
reverse_iterator set_name.rend()Parameter: The function does not accepts any parameter. Return value: The function returns a reverse iterator pointing to the theoretical element right before the first element in the set container. Below programs illustrate the function: Program 1:
5 4 3 2 1