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 has had standard attributes since C 11, and every new standard is adding more. The C language introduced attributes in C23, adopted many attributes from C , and added two new attributes exclusive to C: unsequenced and reproducible.
In this talk, we will describe the syntax and semantics of all existing standard attributes, including the latest additions in C23 and C 23, discuss the use cases for each one, show practical code examples, and offer guidelines on how to use them safely and effectively. We will also talk about the often-misunderstood C language design rule that attributes are “ignorable“ and what that actually means.
---
Timur Doumler
Timur Doumler is the Developer Advocate for C tools at JetBrains and co-host of CppCast. He is an active member of the ISO C standard committee, where he is currently co-chair of the Contracts study group. As a developer, he worked many years in the audio and music technology industry and co-founded the music tech startup Cradle. Timur is passionate about clean code, good tools, low latency, and the evolution of the C language.
---
YouTube Videos Filmed, Edited & Optimised by Digital Medium:
#accuconf #programming #cpp
1 view
31
16
2 weeks ago 00:03:28 1
“The Challenge“ FULL Animation by Gwendy [ EPIC the Musical ]
4 weeks ago 01:29:33 2
Jesus Grants Marcelino’s Wish: The Miracle of Marcelino (1955) Religion, Drama | Colorized Movie
4 weeks ago 00:03:47 1
Tina Turner - What’s Love Got To Do With It (Official Music Video)
1 month ago 02:39:28 5
Old English Pronunciation: A Comprehensive Reconstruction
1 month ago 00:01:51 22
A Nightmare on Elm Street (2025) Reboot - TEASER TRAILER (4K) Robert Englund, Freddy Krueger
1 month ago 00:26:09 1
NMIXX: Tiny Desk Korea
1 month ago 00:06:38 1
Meme Coin SUPER CYCLE - I Made 1 ETH PER DAY with This Meme Coin Trading Bot
1 month ago 00:06:38 1
How To Make $2000 Per Day With Ai Crypto Trading Bot 2024
1 month ago 01:24:29 1
【Full Album】Monarch of Monsters
2 months ago 00:07:05 1
Rainbow Six Siege - Graphics Comparison (2015 vs 2019)
2 months ago 00:10:16 8
Depeche Mode - Enjoy The Silence “Merry Christmas“ (Medialook RMX 2024)
2 months ago 00:07:14 1
How To Use AI Crypto Bot and Make $2000 Per Day
2 months ago 00:00:55 1
Skulltaker Upgrades His Cloak with the Skulls Taken From Enemy Lords in Campaign
2 months ago 00:01:31 1
Elena Mukhina Елена Мухина - The Girl We Will Never Forget