Previous fileTop of DocumentContentsIndex pageNext file
Apache C++ Standard Library Reference Guide

<set>

Library:  Containers


Header

Local Index

No Entries

Summary

The header <set> is part of the Containers library of the Standard C++ Library. It defines the associative container class template set, a number of relational operators that C++ programs may use to perform equality and inequality tests on specializations of set, and the specialization of the swap() algorithm for set.

Synopsis

namespace std {
  template <class Key, class Compare = less<Key>, 
            class Allocator = allocator<Key> >
  class set;
  template <class Key, class Compare, class Allocator>
  bool operator==(const set<Key, Compare, Allocator>&, 
                  const set<Key, Compare, Allocator>&);
  template <class Key, class Compare, class Allocator>
  bool operator<(const set<Key, Compare, Allocator>&, 
                 const set<Key, Compare, Allocator>&);
  template <class Key, class Compare, class Allocator>
  bool operator!=(const set<Key, Compare, Allocator>&, 
                  const set<Key, Compare, Allocator>&);
  template <class Key, class Compare, class Allocator>
  bool operator>(const set<Key, Compare, Allocator>&, 
                 const set<Key, Compare, Allocator>&);
  template <class Key, class Compare, class Allocator>
  bool operator>=(const set<Key, Compare, Allocator>&, 
                  const set<Key, Compare, Allocator>&);
  template <class Key, class Compare, class Allocator>
  bool operator<=(const set<Key, Compare, Allocator>&, 
                  const set<Key, Compare, Allocator>&);
  template <class Key, class Compare, class Allocator>
  void swap(set<Key, Compare, Allocator>&, 
            set<Key, Compare, Allocator>&);

  template <class Key, class Compare = less<Key>, 
            class Allocator = allocator<Key> >
  class multiset;
  template <class Key, class Compare, class Allocator>
  bool operator==(const multiset<Key, Compare, Allocator>&, 
                  const multiset<Key, Compare, Allocator>&);
  template <class Key, class Compare, class Allocator>
  bool operator<(const multiset<Key, Compare, Allocator>&, 
                 const multiset<Key, Compare, Allocator>&);
  template <class Key, class Compare, class Allocator>
  bool operator!=(const multiset<Key, Compare, Allocator>&, 
                  const multiset<Key, Compare, Allocator>&);
  template <class Key, class Compare, class Allocator>
  bool operator>(const multiset<Key, Compare, Allocator>&, 
                 const multiset<Key, Compare, Allocator>&);
  template <class Key, class Compare, class Allocator>
  bool operator>=(const multiset<Key, Compare, Allocator>&, 
                  const multiset<Key, Compare, Allocator>&);
  template <class Key, class Compare, class Allocator>
  bool operator<=(const multiset<Key, Compare, Allocator>&, 
                  const multiset<Key, Compare, Allocator>&);
  template <class Key, class Compare, class Allocator>
  void swap(multiset<Key, Compare, Allocator>&, 
            multiset<Key, Compare, Allocator>&);
}

See Also

set, multiset, Containers, Associative Containers

Standards Conformance

ISO/IEC 14882:1998 -- International Standard for Information Systems --Programming Language C++, Section 23.3



Previous fileTop of DocumentContentsIndex pageNext file