
std:: rotate - cppreference.com
Feb 10, 2025 · Specifically, std::rotate swaps the elements in the range [first,last) in such a way that the elements in [first,middle) are placed after the elements in [middle,last) while the orders …
std:: rotate_copy - cppreference.com
Feb 26, 2025 · See also rotate rotates the order of elements in a range (function template) [edit] ranges::rotate_copy (C++20) copies and rotate a range of elements (algorithm function object) …
Constrained algorithms (since C++20) - cppreference.com
Nov 27, 2024 · C++20 provides constrained versions of most algorithms in the namespace std::ranges. In these algorithms, a range can be specified as either an iterator - sentinel pair or …
Standard library header <algorithm> - cppreference.com
Nov 27, 2023 · rotate_copy copies and rotate a range of elements (function template) [edit] shift_leftshift_right (C++20) shifts elements in a range (function template) [edit] …
std::ranges:: copy, std::ranges:: copy_if, std::ranges:: copy_result ...
Aug 28, 2023 · rotate_copy unique_copy Partitioning operations is_partitioned partition_point partition partition_copy stable_partition Sorting operations is_sorted is_sorted_until sort …
std::ranges::rotate - cppreference.com
Feb 11, 2025 · Notes ranges::rotate has better efficiency on common implementations if I models bidirectional_iterator or (better) random_access_iterator. Implementations (e.g. MSVC STL) …
std::ranges::rotate_copy, std::ranges::rotate_copy_result ...
Feb 26, 2025 · If the value type is TriviallyCopyable and the iterator types satisfy contiguous_iterator, implementations of ranges::rotate_copy usually avoid multiple …
std::nth_element - cppreference.com
Feb 10, 2025 · nth_element rearranges elements in [first,last) such that after the rearrangement:
std:: rotr - cppreference.com
Mar 19, 2025 · Computes the result of bitwise right-rotating the value of x by s positions. This operation is also known as a right circular shift. Formally, let N be …
std::ranges:: transform, std::ranges:: unary_transform_result, std ...
Feb 12, 2025 · rotate_copy unique_copy Partitioning operations is_partitioned partition_point partition partition_copy stable_partition Sorting operations is_sorted is_sorted_until sort …