STL in CPP ( Part IV )
STANDARD TEMPLATE LIBRARY II - SET - 2023
Standard Template Library (STL) II - Associative Containers: Set
Sets and multisets sort their elements automatically. Sets do not allow duplicates while multisets allow duplicates.
Output:
As we see from the output of the second line, set srots its element automatically and removes any duplicates. The third line was sorted with the last digits.
Last updated
Was this helpful?