Multiset Operators [C++ Reference]
Keywords: stl,multiset,multiset_operators
Date: 2010-05-04T16:21:57-0700

[[Multiset Operators]]
C++ Reference
Translations of this page?:

- en
- br-pt
- cn
- cz
- de
- es
- fr
- it
- jp
- nl
- pl
- ro
- ru
- sk
- tr
- tw

## Multiset Operators

Syntax:

        #include <set>
        multiset& operator=(const multiset& c2);
        bool operator==(const multiset& c1, const multiset& c2);
        bool operator!=(const multiset& c1, const multiset& c2);
        bool operator<(const multiset& c1, const multiset& c2);
        bool operator>(const multiset& c1, const multiset& c2);
        bool operator<=(const multiset& c1, const multiset& c2);
        bool operator>=(const multiset& c1, const multiset& c2);

All of the C++ containers can be compared and assigned with the standard comparison operators: ==, !=, ⇐, >=, <, >, and =. Performing a comparison or assigning one multiset to another takes linear time.

Two multisets are equal if:

1. Their size is the same, and
2. Each member in location i in one multiset is equal to the member in location i in the other multiset.

Comparisons among multisets are done lexicographically.

Edit this page • Old revisions
• • • Login • Index • Recent changes • RSS • cc •