Introduction to Attributes
Get a brief introduction to attributes that come with C++20.
We'll cover the following...
We'll cover the following...
With C++20, we get new and improved attributes such as [[nodiscard("reason")]], [[likely]], [[unlikely]], and [[no_unique_address]]. In particular, [[nodiscard("reason")]] can be used to explicitly express the intent of our interface.
🔑 ...