notes/OJ notes/pages/cpp_std_multiset.md

26 lines
549 B
Markdown
Raw Permalink Normal View History

2022-06-14 23:33:35 +08:00
# Multiset
#### 2022-06-12
2022-09-03 15:41:36 +08:00
---
2022-06-14 23:33:35 +08:00
##### Data structures:
2022-09-03 15:41:36 +08:00
2022-06-14 23:33:35 +08:00
#DS #multiset
2022-09-03 15:41:36 +08:00
2022-06-14 23:33:35 +08:00
##### Difficulty:
2022-09-03 15:41:36 +08:00
2022-09-06 20:22:48 +08:00
#CS_analysis #difficulty_easy
2022-09-03 15:41:36 +08:00
2022-06-14 23:33:35 +08:00
##### Related problems:
2022-09-03 15:41:36 +08:00
2022-06-14 23:33:35 +08:00
##### Links:
2022-09-03 15:41:36 +08:00
2022-06-14 23:33:35 +08:00
- [cppreference](https://en.cppreference.com/w/cpp/container/multiset)
2022-09-03 15:41:36 +08:00
---
2022-06-14 23:33:35 +08:00
### What is Multiset?
2022-09-03 15:41:36 +08:00
`std::multiset` is an associative container that contains a sorted set of objects of type Key. Unlike set, multiple keys with equivalent values are allowed. Sorting is done using the key comparison function Compare. Search, insertion, and removal operations have logarithmic complexity.