New Attributes with C++20--Rainer Grimm
More possibilities.
New Attributes with C++20
by Rainer Grimm
From the article:
With C++20, we got new and improved attributes such as [[nodiscard("reason")]], [[likely]], [[unlikely]], and [[no_unique_address]]. In particular, [[nodiscard("reason")]] allows it to express the intention of your interface way clearer...