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>void set_spare_storage(basic_result|basic_outcome *, uint16_t) noexcept - 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/hooks/override_outcome_exception.html"><img src="../../../images/prev.png" alt="Prev"></a> 11 <a accesskey="u" href="../../../reference/functions/hooks.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.html"><img src="../../../images/next.png" alt="Next"></a></div><div id="content"> 13 <div class="titlepage"><div><div><h1 style="clear: both"><code>void set_spare_storage(basic_result|basic_outcome *, uint16_t) noexcept</code></h1></div></div></div> 14 <p>Sets the sixteen bits of spare storage in the specified result or outcome. You can retrieve these bits later using <a href="../../../reference/functions/hooks/spare_storage.html" class="api-reference"><code>uint16_t spare_storage(const basic_result|basic_outcome *) noexcept</code></a> 15.</p> 16 17<p><em>Overridable</em>: Not overridable.</p> 18 19<p><em>Requires</em>: Nothing.</p> 20 21<p><em>Namespace</em>: <code>BOOST_OUTCOME_V2_NAMESPACE::hooks</code></p> 22 23<p><em>Header</em>: <code><boost/outcome/basic_result.hpp></code></p> 24 25 26 </div><p><small>Last revised: January 21, 2019 at 18:00:41 UTC</small></p> 27<hr> 28<div class="spirit-nav"> 29<a accesskey="p" href="../../../reference/functions/hooks/override_outcome_exception.html"><img src="../../../images/prev.png" alt="Prev"></a> 30 <a accesskey="u" href="../../../reference/functions/hooks.html"><img src="../../../images/up.png" alt="Up"></a> 31 <a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="../../../reference/functions/iostream.html"><img src="../../../images/next.png" alt="Next"></a></div></body> 32</html> 33