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++23 added a new use case for the auto keyword. auto can now produce a prvalue copy of an argument.

auto(arg) being equivalent to T(arg) and auto{arg} being equivalent to T{arg}, with the benefit that we do not have to get access to T (using T = std::decay_t<decltype(arg)>;).

Due to C++17 direct initialization, auto will never produce excessive copies.

Compiler Explorer link: compiler-explorer.com/z/Gq8xEj