Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 400 Bytes

rend.md

File metadata and controls

15 lines (9 loc) · 400 Bytes

rend

Description : list::rend() is an inbuilt function in C++ STL that returns a reverse iterator which points to the position before the beginning of the list.

Example :

    std::list<int> lis = { 109, 206, 303, 401, 506 }; 
  
    std::cout << "The list in reverse order: "; 
  
    for (auto it = lis.rbegin(); it != lis.rend(); ++it) 
        std::cout << *it << " ";