Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

Prev Up HomeNext

BOOST_OUTCOME_NODISCARD

Compiler-specific markup used to tell the compiler than the return value of a function should not be discarded without examining it.

Overridable: Define before inclusion.

Default: To [[nodiscard]] if on C++ 17 or higher, __attribute__((warn_unused_result)) if on clang, SAL _Must_inspect_result_ if on MSVC, otherwise nothing.

Header: <boost/outcome/config.hpp>

Last revised: December 12, 2018 at 22:01:42 UTC


Prev Up HomeNext