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>Policy - 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_print.html"><img src="../../images/prev.png" alt="Prev"></a> 11 <a accesskey="u" href="../../reference/functions.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/policy/basic_outcome_failure_exception_from_error.html"><img src="../../images/next.png" alt="Next"></a></div><div id="content"> 13 14 <div class="titlepage"><div><div><h1 style="clear: both">Policy</h1></div></div></div> 15<ol class="children children-li"><li> 16 <a href="../../reference/functions/policy/basic_outcome_failure_exception_from_error.html" ><code>auto basic_outcome_failure_exception_from_error(const EC &)</code></a> 17<p>ADL discovered free function synthesising an exception type from an error type, used by the <code>.failure()</code> observers.</p><li> 18 <a href="../../reference/functions/policy/error_code.html" ><code>decltype(auto) error_code(T &&)</code></a> 19<p>Extracts a <code>boost::system::error_code</code> or <code>std::error_code</code> from the input via ADL discovery of a suitable <code>make_error_code(T)</code> function.</p><li> 20 <a href="../../reference/functions/policy/exception_ptr.html" ><code>decltype(auto) exception_ptr(T &&)</code></a> 21<p>Extracts a <code>boost::exception_ptr</code> or <code>std::exception_ptr</code> from the input via ADL discovery of a suitable <code>make_exception_ptr(T)</code> function.</p><li> 22 <a href="../../reference/functions/policy/outcome_throw_as_system_error_with_payload_boost_enum.html" ><code>void outcome_throw_as_system_error_with_payload(BoostErrorCodeEnum &&)</code></a> 23<p>Specialisation of <code>outcome_throw_as_system_error_with_payload()</code> for input types where <code>boost::system::is_error_code_enum<BoostErrorCodeEnum></code> or <code>boost::system::is_error_condition_enum<BoostErrorCodeEnum></code> is true.</p><li> 24 <a href="../../reference/functions/policy/outcome_throw_as_system_error_with_payload_std_enum.html" ><code>void outcome_throw_as_system_error_with_payload(ErrorCodeEnum &&)</code></a> 25<p>Specialisation of <code>outcome_throw_as_system_error_with_payload()</code> for input types where <code>std::is_error_code_enum<ErrorCodeEnum></code> or <code>std::is_error_condition_enum<ErrorCodeEnum></code> is true.</p><li> 26 <a href="../../reference/functions/policy/outcome_throw_as_system_error_with_payload_boost_error_code.html" ><code>void outcome_throw_as_system_error_with_payload(const boost::system::error_code &)</code></a> 27<p>Specialisation of <code>outcome_throw_as_system_error_with_payload()</code> for <code>boost::system::error_code</code>.</p><li> 28 <a href="../../reference/functions/policy/outcome_throw_as_system_error_with_payload_std_error_code.html" ><code>void outcome_throw_as_system_error_with_payload(const std::error_code &)</code></a> 29<p>Specialisation of <code>outcome_throw_as_system_error_with_payload()</code> for <code>std::error_code</code>.</p></li></ol> 30 31 32 33 34 35 36 37 38 </div><p><small>Last revised: January 22, 2019 at 01:11:40 UTC</small></p> 39<hr> 40<div class="spirit-nav"> 41<a accesskey="p" href="../../reference/functions/iostream/result_print.html"><img src="../../images/prev.png" alt="Prev"></a> 42 <a accesskey="u" href="../../reference/functions.html"><img src="../../images/up.png" alt="Up"></a> 43 <a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="../../reference/functions/policy/basic_outcome_failure_exception_from_error.html"><img src="../../images/next.png" alt="Next"></a></div></body> 44</html> 45