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>decltype(auto) exception_ptr(T &&) - 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/policy/error_code.html"><img src="../../../images/prev.png" alt="Prev"></a> 11 <a accesskey="u" href="../../../reference/functions/policy.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/outcome_throw_as_system_error_with_payload_boost_enum.html"><img src="../../../images/next.png" alt="Next"></a></div><div id="content"> 13 <div class="titlepage"><div><div><h1 style="clear: both"><code>decltype(auto) exception_ptr(T &&)</code></h1></div></div></div> 14 <p>Extracts a <code>boost::exception_ptr</code> or 15<a href="https://en.cppreference.com/w/cpp/error/exception_ptr" class="api-reference" target="_blank"><i class="fa fa-book" aria-hidden="true"></i> <code>std::exception_ptr</code></a> 16 from the input via ADL discovery of a suitable <code>make_exception_ptr(T)</code> function.</p> 17 18<p><em>Overridable</em>: Argument dependent lookup.</p> 19 20<p><em>Requires</em>: Always available.</p> 21 22<p><em>Namespace</em>: <code>BOOST_OUTCOME_V2_NAMESPACE::policy</code></p> 23 24<p><em>Header</em>: <code><boost/outcome/std_result.hpp></code></p> 25 26 27 </div><p><small>Last revised: January 23, 2019 at 01:27:31 UTC</small></p> 28<hr> 29<div class="spirit-nav"> 30<a accesskey="p" href="../../../reference/functions/policy/error_code.html"><img src="../../../images/prev.png" alt="Prev"></a> 31 <a accesskey="u" href="../../../reference/functions/policy.html"><img src="../../../images/up.png" alt="Up"></a> 32 <a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="../../../reference/functions/policy/outcome_throw_as_system_error_with_payload_boost_enum.html"><img src="../../../images/next.png" alt="Next"></a></div></body> 33</html> 34