Skip to content

Latest commit

 

History

History
52 lines (38 loc) · 3.22 KB

set.md

File metadata and controls

52 lines (38 loc) · 3.22 KB
descriptiontitlems.datef1_keywordshelpviewer_keywordsms.assetid
Learn more about: <set>
<set>
11/04/2016
<set>
set header
43cb1ab2-6383-48cf-8bdc-2b96d7203596

<set>

Defines the container class templates set and multiset and their supporting templates.

Requirements

Header: <set>

Namespace: std

Note

The <set> library also uses the #include <initializer_list> statement.

Members

Operators

Set versionMultiset versionDescription
operator!= (set)operator!= (multiset)Tests if the set or multiset object on the left side of the operator is not equal to the set or multiset object on the right side.
operator< (set)operator< (multiset)Tests if the set or multiset object on the left side of the operator is less than the set or multiset object on the right side.
operator<= (set)operator<= (multiset)Tests if the set or multiset object on the left side of the operator is less than or equal to the set or multiset object on the right side.
operator== (set)operator== (multiset)Tests if the set or multiset object on the left side of the operator is equal to the set or multiset object on the right side.
operator> (set)operator> (multiset)Tests if the set or multiset object on the left side of the operator is greater than the set or multiset object on the right side.
operator>= (set)operator>= (multiset)Tests if the set or multiset object on the left side of the operator is greater than or equal to the set or multiset object on the right side.

Specialized Template Functions

Set versionMultiset versionDescription
swapswap (multiset)Exchanges the elements of two sets or multisets.

Classes

NameDescription
set ClassUsed for the storage and retrieval of data from a collection in which the values of the elements contained are unique and serve as the key values according to which the data is automatically ordered.
multiset ClassUsed for the storage and retrieval of data from a collection in which the values of the elements contained need not be unique and in which they serve as the key values according to which the data is automatically ordered.

See also

Header Files Reference
Thread Safety in the C++ Standard Library
C++ Standard Library Reference

close