- is guaranteed to be stable Notes: Stable: the relative order of the equivalent elements is preserved. If an exception is thrown the order of the elements in the list is indeterminate.
- Equivalent elements are not guaranteed to keep their original relative order
- like sort, but preserves the relative order of the elements with equivalent values
- is for std::vector and other generic containers
- sorted
- slower than std::unordered_map
- allow the direct iteration on subsets based on their order
- not sorted
- faster than std::map
- less efficient for range iteration
O(n²) - если алгоритм обрабатывает входные данные размером n за время cn² (где c — константа), то говорят, что временная сложность такого алгоритма O(n²).