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
15
5 months ago 00:02:38 1
Lil Nas X - Old Town Road (Official Video) ft. Billy Ray Cyrus
5 months ago 00:01:49 1
Martha by Tom Waits - Kalimba Cover
5 months ago 00:08:04 1
ABBA News – New 4K Video | Björn’s Summer
5 months ago 01:10:24 1
Do not seek revenge or bear a grudge Leviticus 19:18
5 months ago 00:03:18 1
OTYKEN - LEGEND (Official Music Video)
5 months ago 00:01:00 1
Neil LeVang Ghost Riders In The Sky 1961, Iconic cowboy song and its relevance in that era.
5 months ago 00:58:42 1
Retro Sessions - Vol 02 ★ 80’s & 90’s Deep House Mix 2022 By Abee Sash
5 months ago 00:57:42 1
Retro Sessions - Vol 05 ★ 80’s & 90’s Deep House Mix 2023 By Abee Sash
5 months ago 01:01:08 1
Retro Sessions - Vol 03 ★ 80’s & 90’s Deep House Mix 2023 By Abee Sash
5 months ago 00:07:23 1
МАЙКЛ ДЖЕКСОН ЖИВ? (GTA: ПИРАТСКИЙ ПЕРЕДОЗ #2)
5 months ago 00:02:58 1
CASCADA - CALL ME (Official Music Video)
5 months ago 00:04:28 1
lambvaxx - Exquisite Champion
5 months ago 00:04:20 1
Robert Burns - My Love is Like a Red, Red Rose
5 months ago 00:56:25 1
FATHER’S DAY SPECIAL: Osbourne Girl’s Take Over
5 months ago 00:03:00 1
Earth Angel - Marvin Berry & The Starlighters (HQ)
5 months ago 00:21:53 1
NZXT H7 Flow RGB 2024 Case Review
5 months ago 00:03:33 2
LA PALOMA by WALKIN’ SHOES - Instrumental
5 months ago 00:46:51 1
Pharmacist - Medical Renditions Of Grinding Decomposition FULL ALBUM (2020 - Goregrind / Deathgrind)
5 months ago 00:04:12 1
Secret Service — Lit de Parade (OFFICIAL VIDEO, 2021)
5 months ago 00:20:59 1
old songs but it’s lofi remix pt. 2
5 months ago 00:03:57 1
Walking Blues (Robert Johnson) feat. Keb’ Mo’ | Playing For Change | Song Around The World
5 months ago 00:03:05 3
Պսակի երթ / psaki yert major version
5 months ago 00:04:38 1
We Will Rock You (Udo Dirkschneider Version) Official Music Video