OLD VERSION: Standard Attributes in C and C++ - Timur Doumler - ACCU 2023

This Video Has Been Replaced With A New Version: ACCU Membership: Sponsored By think-cell: Standard Attributes in C and C - Timur Doumler - ACCU 2023 Slides: This talk is an in-depth tour of the standard attributes currently available in the C and C programming languages. Some attributes such as deprecated, fallthrough, nodiscard, and maybe_unused are very helpful to produce or suppress warnings. Others, such as likely and unlikely, can be used as optimisation hints to the compiler, although it can be difficult to avoid misuse and accidentally pessimise your code instead. The attributes noreturn and assume can even inject undefined behaviour into your code. And then there is no_unique_address, which can be used to optimise the class layout, but comes with its own caveats regarding portability across major compilers. C
Back to Top