• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<html><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
3<title>BOOST_OUTCOME_NODISCARD - Boost.Outcome documentation</title>
4<link rel="stylesheet" href="../../css/boost.css" type="text/css">
5<meta name="generator" content="Hugo 0.52 with Boostdoc theme">
6<meta name="viewport" content="width=device-width,initial-scale=1.0"/>
7
8<link rel="icon" href="../../images/favicon.ico" type="image/ico"/>
9<body><div class="spirit-nav">
10<a accesskey="p" href="../../reference/macros/enable_legacy_support_for.html"><img src="../../images/prev.png" alt="Prev"></a>
11    <a accesskey="u" href="../../reference/macros.html"><img src="../../images/up.png" alt="Up"></a>
12    <a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="../../reference/macros/requires.html"><img src="../../images/next.png" alt="Next"></a></div><div id="content">
13  <div class="titlepage"><div><div><h1 style="clear: both"><code>BOOST_OUTCOME_NODISCARD</code></h1></div></div></div>
14  <p>Compiler-specific markup used to tell the compiler than the return value of a function should not be discarded without examining it.</p>
15
16<p><em>Overridable</em>: Define before inclusion.</p>
17
18<p><em>Default</em>: To <code>[[nodiscard]]</code> if on C++ 17 or higher, <code>__attribute__((warn_unused_result))</code> if on clang, SAL <code>_Must_inspect_result_</code> if on MSVC, otherwise nothing.</p>
19
20<p><em>Header</em>: <code>&lt;boost/outcome/config.hpp&gt;</code></p>
21
22
23        </div><p><small>Last revised: December 12, 2018 at 22:01:42 UTC</small></p>
24<hr>
25<div class="spirit-nav">
26<a accesskey="p" href="../../reference/macros/enable_legacy_support_for.html"><img src="../../images/prev.png" alt="Prev"></a>
27    <a accesskey="u" href="../../reference/macros.html"><img src="../../images/up.png" alt="Up"></a>
28    <a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="../../reference/macros/requires.html"><img src="../../images/next.png" alt="Next"></a></div></body>
29</html>
30