Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Latest commit

History

History
16 lines (10 loc) 路 436 Bytes

rbegin.md

File metadata and controls

16 lines (10 loc) 路 436 Bytes

rbegin

Description : list::rbegin() is an inbuilt function in C++ STL that returns a reverse iterator which points to the last element of the list.

Example :

    std::list<int> lis = { 105, 207, 309, 401, 503 }; 
  
    std::cout << "The list in reverse order: "; 
  
    for (auto it = lis.rbegin(); it != lis.rend(); ++it) 
        std::cout << *it << " "; 

Run Code