Difference between revisions of "cpp/container/set"
From cppreference.com
(Undo revision 45697 by 79.205.247.201 (talk) See the table 101 (associative container requirements) in p. 741-742 of the C++11 standard.) |
(+ ref to set_intersection) |
||
Line 77: | Line 77: | ||
{{dcl list template | cpp/container/dcl list operator_cmp | set}} | {{dcl list template | cpp/container/dcl list operator_cmp | set}} | ||
{{dcl list template | cpp/container/dcl list swap2 | set}} | {{dcl list template | cpp/container/dcl list swap2 | set}} | ||
+ | {{dcl list template | cpp/algorithm/dcl list set_intersection}} | ||
{{dcl list end}} | {{dcl list end}} | ||
Revision as of 03:01, 26 April 2013
Defined in header <set>
|
||
template< class Key, |
||
std::set
is an associative container that contains a sorted set of unique objects of type Key. Sorting is done using the key comparison function Compare. Search, removal, and insertion operations have logarithmic complexity. Sets are usually implemented as red-black trees.
std::set
meets the requirements of Template:concept, Template:concept, Template:concept and Template:concept.
Contents |
Member types