Skip to content

Latest commit

 

History

History
81 lines (67 loc) · 3.71 KB

File metadata and controls

81 lines (67 loc) · 3.71 KB
title <set> | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-standard-libraries
ms.tgt_pltfrm
ms.topic article
f1_keywords
std.<set>
std::<set>
<set>
dev_langs
C++
helpviewer_keywords
set header
ms.assetid 43cb1ab2-6383-48cf-8bdc-2b96d7203596
caps.latest.revision 20
author corob-msft
ms.author corob
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

<set>

Defines the container template classes set and multiset and their supporting templates.

Syntax

#include <set>  
  

Members

Operators

Set version Multiset version Description
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 version Multiset version Description
swap swap (multiset) Exchanges the elements of two sets or multisets.

Classes

set Class Used 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 Class Used 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