result_operator_out.html 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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_result&lt;T, E, 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. <link rel="icon" href="../../../images/favicon.ico" type="image/ico"/>
  8. <body><div class="spirit-nav">
  9. <a accesskey="p" href="../../../reference/functions/iostream/outcome_operator_out.html"><img src="../../../images/prev.png" alt="Prev"></a>
  10. <a accesskey="u" href="../../../reference/functions/iostream.html"><img src="../../../images/up.png" alt="Up"></a>
  11. <a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="../../../reference/functions/iostream/outcome_print.html"><img src="../../../images/next.png" alt="Next"></a></div><div id="content">
  12. <div class="titlepage"><div><div><h1 style="clear: both"><code>std::ostream &amp;operator&lt;&lt;(std::ostream &amp;, const basic_result&lt;T, E, NoValuePolicy&gt; &amp;)</code></h1></div></div></div>
  13. <p>Serialises a <code>basic_result</code> to a <code>std::ostream</code>.</p>
  14. <p>Serialisation format is:</p>
  15. <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;
  16. </code></pre>
  17. <p>This is the <strong>wrong</strong> function to use if you wish to print human readable output.
  18. Use <a href="../../../reference/functions/iostream/result_print.html" class="api-reference"><code>std::string print(const basic_result&lt;T, E, NoValuePolicy&gt; &amp;)</code></a>
  19. instead.</p>
  20. <p><em>Overridable</em>: Not overridable.</p>
  21. <p><em>Requires</em>: That <code>operator&lt;&lt;</code> is a valid expression for <code>std::ostream</code> and <code>T</code> and <code>E</code>.</p>
  22. <p><em>Namespace</em>: <code>BOOST_OUTCOME_V2_NAMESPACE</code></p>
  23. <p><em>Header</em>: <code>&lt;boost/outcome/iostream_support.hpp&gt;</code> (must be explicitly included manually).</p>
  24. </div><p><small>Last revised: March 03, 2019 at 21:04:29 UTC</small></p>
  25. <hr>
  26. <div class="spirit-nav">
  27. <a accesskey="p" href="../../../reference/functions/iostream/outcome_operator_out.html"><img src="../../../images/prev.png" alt="Prev"></a>
  28. <a accesskey="u" href="../../../reference/functions/iostream.html"><img src="../../../images/up.png" alt="Up"></a>
  29. <a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="../../../reference/functions/iostream/outcome_print.html"><img src="../../../images/next.png" alt="Next"></a></div></body>
  30. </html>