
std:: sort - cppreference.com
Feb 10, 2025 · Introsort can handle all cases with O (N·log (N)) comparisons (without incurring additional overhead in the average case), and thus is usually used for implementing sort ().
std::ranges::sort - cppreference.com
Feb 12, 2025 · From cppreference.com < | | C++ (C++11) (C++17) (C++11) (C++26) [edit] Algorithm library Constrained algorithms and algorithms on ranges (C++20)
std::map - cppreference.com
Apr 26, 2025 · (C++17) Lookup map::count map::find map::contains (C++20) map::equal_range map::lower_bound map::upper_bound Non-member functions operator==operator<=> …
Algorithms library - cppreference.com
Feb 14, 2025 · The algorithms library defines functions for a variety of purposes (e.g. searching, sorting, counting, manipulating) that operate on ranges of elements. Note that a range is …
std::accumulate - cppreference.com
Feb 9, 2025 · 1) Initializes the accumulator acc (of type T) with the initial value init and then modifies it with acc = acc +*i(until C++20)acc = std::move(acc)+*i(since C++20) for every …
std::partial_sort - cppreference.com
Feb 12, 2025 · #include <algorithm>#include <array>#include <functional>#include <iostream>void(constauto&int){for(int:)std::cout<<<<' ';std::cout<<'\n';if(>0){while(- …
std::sort_heap - cppreference.com
Feb 12, 2025 · 1) The heap is with respect to operator<(until C++20)std::less{}(since C++20), and will be sorted with respect to operator<(until C++20)std::less{}(since C++20).
std::set - cppreference.com
Apr 26, 2025 · set::extract (C++17) set::merge (C++17) set::insert set::insert_range (C++23) set::emplace (C++11) set::emplace_hint (C++11) Lookup set::count set::find set::contains …
std:: unordered_set - cppreference.com
Apr 26, 2025 · (C++17) unordered_set::insert unordered_set::insert_range (C++23) unordered_set::emplace unordered_set::emplace_hint Lookup unordered_set::count …
std::stable_sort - cppreference.com
Feb 10, 2025 · < | C++ (C++11) (C++17) (C++11) (C++26) [edit] Algorithm library Constrained algorithms and algorithms on ranges (C++20)