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++17 Class Template Argument Deduction (CTAD) enables class template deduction from the constructor call.

This removes redundant type information, often improving readability and removing the potential for unintended implicit conversions.

Custom types can provide deduction guides (covered in a separate post), for when arguments do not match template parameters.

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