The [[nodiscard("reason")]] Attribute
Understand the use of the '[[nodiscard("reason")]]' attribute in C++20.
We'll cover the following...
We'll cover the following...
C++17 introduced the new attribute [[nodiscard]] without a reason. C++20 added the possibility to add a message to the attribute.