hachyderm.io is one of the many independent Mastodon servers you can use to participate in the fediverse.
Hachyderm is a safe space, LGBTQIA+ and BLM, primarily comprised of tech industry professionals world wide. Note that many non-user account types have restrictions - please see our About page.

Administered by:

Server stats:

9.5K
active users

Šimon Tóth

The C++20 std::shift_left and std::shift_right algorithms move elements in the provided range by the specified offset.

Both algorithms internally move, meaning we can simulate these algorithms manually by calling the std::move algorithm with the appropriate source and offset destination.

Both algorithms have parallel (C++20) and range (C++23) versions.

Compiler Explorer link: compiler-explorer.com/z/4rer4o