Difference between revisions of "cpp/container/set"
From cppreference.com
(+ ref to set_intersection) |
(Undo revision 47156 by 156.48.56.169 (talk) not a set member fn or set-only algorithm) |
||
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 end}} | {{dcl list end}} | ||
Revision as of 06:07, 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