February 2022
Beginner
848 pages
22h 40m
English
set and multisetThe Standard Template Library (STL) offers container classes that help with frequent and quick searches. The classes std::set and std::multiset each contain a sorted set of elements with the ability to find elements given a logarithmic complexity. Their unordered counterparts offer constant-time insertion and search capabilities.
This lesson includes
■ How STL set and multiset, unordered_set, and unordered_multiset containers can be of use to you
■ Insertion, removal, and search of elements
■ Advantages and disadvantages of using these containers
set and multiset are containers that facilitate quick lookups of keys in a container that stores them; that is, the keys are ...
Read now
Unlock full access