• 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>std::ostream &amp;operator&lt;&lt;(std::ostream &amp;, const basic_outcome&lt;T, EC, EP, NoValuePolicy&gt; &amp;) - 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/functions/iostream/result_operator_in.html"><img src="../../../images/prev.png" alt="Prev"></a>
11    <a accesskey="u" href="../../../reference/functions/iostream.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/functions/iostream/result_operator_out.html"><img src="../../../images/next.png" alt="Next"></a></div><div id="content">
13  <div class="titlepage"><div><div><h1 style="clear: both"><code>std::ostream &amp;operator&lt;&lt;(std::ostream &amp;, const basic_outcome&lt;T, EC, EP, NoValuePolicy&gt; &amp;)</code></h1></div></div></div>
14  <p>Serialises a <code>basic_outcome</code> to a <code>std::ostream</code>.</p>
15
16<p>Serialisation format is:</p>
17
18<pre><code>&lt;unsigned int flags&gt;&lt;space&gt;&lt;value_type if set and not void&gt;&lt;error_type if set and not void&gt;&lt;exception_type if set and not void&gt;
19</code></pre>
20
21<p>This is the <strong>wrong</strong> function to use if you wish to print human readable output.
22Use <a href="../../../reference/functions/iostream/outcome_print.html" class="api-reference"><code>std::string print(const basic_outcome&lt;T, EC, EP, NoValuePolicy&gt; &amp;)</code></a>
23 instead.</p>
24
25<p><em>Overridable</em>: Not overridable.</p>
26
27<p><em>Requires</em>: That <code>operator&lt;&lt;</code> is a valid expression for <code>std::ostream</code> and <code>T</code>, <code>EC</code> and <code>EP</code>.</p>
28
29<p><em>Namespace</em>: <code>BOOST_OUTCOME_V2_NAMESPACE</code></p>
30
31<p><em>Header</em>: <code>&lt;boost/outcome/iostream_support.hpp&gt;</code> (must be explicitly included manually).</p>
32
33
34        </div><p><small>Last revised: March 03, 2019 at 21:04:29 UTC</small></p>
35<hr>
36<div class="spirit-nav">
37<a accesskey="p" href="../../../reference/functions/iostream/result_operator_in.html"><img src="../../../images/prev.png" alt="Prev"></a>
38    <a accesskey="u" href="../../../reference/functions/iostream.html"><img src="../../../images/up.png" alt="Up"></a>
39    <a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="../../../reference/functions/iostream/result_operator_out.html"><img src="../../../images/next.png" alt="Next"></a></div></body>
40</html>
41