Search code examples
Explanation of [[nodiscard]] in C++17...

c++c++17compiler-warningsnodiscardc++-attributes

Read More
Why clang-tidy suggests to add [[nodiscard]] everywhere?...

c++clangclang-tidynodiscard

Read More
How can I intentionally discard a [[nodiscard]] return value?...

c++c++17nodiscard

Read More
What are the common practices and considerations for using the [[nodiscard]] attribute in C++ code?...

c++c++17nodiscard

Read More
Why not apply [[nodiscard]] to every constructor?...

c++c++20nodiscard

Read More
Why is the C++ standard library Container function empty() marked as [[nodiscard]]?...

c++c++20nodiscard

Read More
Is there any benefit to tagging my class's constructor(s) as [[nodiscard]] when the class itself...

c++c++17nodiscardc++-attributes

Read More
Implicit [[nodiscard]] for all const-tagged methods?...

c++c++17constantsclang++nodiscard

Read More
Is [[nodiscard]] any different from [[gnu::warn_unused_result]]?...

cgccunused-variablesnodiscardc23

Read More
Is it possible to ignore [[nodiscard]] in a special case?...

c++c++17nodiscard

Read More
[[nodiscard]] attribute different compilation result for GCC and Clang...

c++gccc++17clangnodiscard

Read More
[[nodiscard]] to a function pointer...

c++c++17nodiscard

Read More
Does GCC 7.3 omit the [[nodiscard]] attribute for reference returning member functions?...

c++gccg++c++17nodiscard

Read More
Are new C++17 [[nodiscard]] warnings since Visual Studio 15.6.2 compiler update standards-compliant?...

c++visual-c++c++17language-lawyernodiscard

Read More
Is it right to use static_cast<void> to ignore iterator as return value?...

c++c++17compiler-warningsnodiscard

Read More
Why does [[nodiscard]] only encourage compiler to issue a warning and does not require it?...

c++c++17standardsnodiscardterminology

Read More
Can I declare a type [[nodiscard]] with 'using'?...

c++c++17nodiscard

Read More
Is nodiscard necessary on operators?...

c++c++17nodiscard

Read More
Ways to specify [[nodiscard]] before C++17...

c++nodiscard

Read More
Why is unique_ptr::release not defined with [[nodiscard]]?...

c++unique-ptrnodiscard

Read More
Template parameter dependant [[nodiscard]]...

c++attributesc++17nodiscard

Read More
Trying out [[nodiscard]] with no success...

c++visual-studio-2017c++17nodiscard

Read More
warning C5240: 'nodiscard': attribute is ignored in this syntactic position...

c++visual-studio-2019warningsnodiscard

Read More
What is the rationale behind having [[nodiscard]] types?...

c++attributesc++17nodiscard

Read More
Why is std::move not [[nodiscard]] in C++20?...

c++c++17language-lawyerc++20nodiscard

Read More
BackNext