Files
cppdraft_translate/cppdraft/alg/set/operations/general.md
2025-10-25 03:02:53 +03:00

1.0 KiB

[alg.set.operations.general]

26 Algorithms library [algorithms]

26.8.7 Set operations on sorted structures [alg.set.operations]

26.8.7.1 General [alg.set.operations.general]

1

#

Subclause [alg.set.operations] defines all the basic set operations on sorted structures.

They also work with multisets ([multiset]) containing multiple copies of equivalent elements.

The semantics of the set operations are generalized to multisets in a standard way by defining set_union to contain the maximum number of occurrences of every element,set_intersection to contain the minimum, and so on.