in_place_type.html 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  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_USE_STD_IN_PLACE_TYPE - 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/macros/try_failure_likely.html"><img src="../../images/prev.png" alt="Prev"></a>
  10. <a accesskey="u" href="../../reference/macros.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/macros/is_nothrow_swappable.html"><img src="../../images/next.png" alt="Next"></a></div><div id="content">
  12. <div class="titlepage"><div><div><h1 style="clear: both"><code>BOOST_OUTCOME_USE_STD_IN_PLACE_TYPE</code></h1></div></div></div>
  13. <p>How to implement <a href="../../reference/types/in_place_type_t.html" class="api-reference"><code>in_place_type_t&lt;T&gt;</code></a>
  14. and <code>in_place_type&lt;T&gt;</code>.</p>
  15. <p>If set to <code>1</code>, the <code>&lt;utility&gt;</code> header is included, and <code>std::in_place_type_t&lt;T&gt;</code>
  16. is aliased into <code>BOOST_OUTCOME_V2_NAMESPACE::in_place_type_t&lt;T&gt;</code> along with
  17. <code>std::in_place_type&lt;T&gt;</code>.</p>
  18. <p>If set to <code>0</code>, a local emulation is used.</p>
  19. <p><em>Overridable</em>: Define before inclusion.</p>
  20. <p><em>Default</em>: If the current compiler implements C++ 17 or later, if unset
  21. this macro is defaulted to <code>1</code>, otherwise it is defaulted to <code>0</code>.</p>
  22. <p><em>Header</em>: <code>&lt;boost/outcome/config.hpp&gt;</code></p>
  23. </div><p><small>Last revised: January 30, 2019 at 16:16:10 UTC</small></p>
  24. <hr>
  25. <div class="spirit-nav">
  26. <a accesskey="p" href="../../reference/macros/try_failure_likely.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/is_nothrow_swappable.html"><img src="../../images/next.png" alt="Next"></a></div></body>
  29. </html>