Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ nodiscard

C++17
The [[nodiscard]] attribute can be used to indicate that the return value of a function shouldn't be ignored when you do a function call.
If the return value is ignored, the compiler should give a warning on this.
Source by riptutorial.com #
 
PREVIOUS NEXT
Tagged: #nodiscard
ADD COMMENT
Topic
Name
7+4 =