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

Latest commit

 

History

History
19 lines (15 loc) · 434 Bytes

reverse.md

File metadata and controls

19 lines (15 loc) · 434 Bytes

reverse

Description : It reverses the order of the elements in the range [first, last) of any container.

Example :

 int main() { 
          int i; 
          std::vector<int> v1{1,2,3,4};
          
          std::reverse(v1.begin(),v1.end());

          for (auto value : v1) {
              std::cout << value << " ";
          }
          return 0; 
      } 

Run Code