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

Latest commit

 

History

History
22 lines (16 loc) · 405 Bytes

end.md

File metadata and controls

22 lines (16 loc) · 405 Bytes

end

Description : This method returns an iterator pointing to the last element in the set.

Example :

//Run Code To Demonstrate use of set.end()
#include<iostream>
#include<set>

int main(){
    // Create a set object holding integers
    std::set<int> mySet {1,2,3,4,-5};

    std::cout << *(mySet.end()) <<std::endl;
    return 0;
}

Run Code