Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Standard C++ Library Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

<set>

Module:  Standard C++ Library   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

Copyright (c) 1994-2006 Rogue Wave Software, a Quovadx Division.
Licensed under the Apache License, Version 2.0.
Contact Rogue Wave about documentation or support issues. You can also seek help from other developers through the Apache stdcxx community (see below).

For more information on the Rogue Wave Standard C++ Library under open source, see Section 1.2 of the user's guide.