About 49,600 results
Open links in new tab
  1. 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 …

  2. 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) …

  3. 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 …

  4. 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] …

  5. 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 …

  6. 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) …

  7. 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 …

  8. std::nth_element - cppreference.com

    Feb 10, 2025 · nth_element rearranges elements in [first,last) such that after the rearrangement:

  9. 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 …

  10. 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 …