<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>libstdc++: std::shared_future< void > Class Template Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript"> $(document).ready(initResizable); </script> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.4 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">libstdc++</div> </td> </tr> </tbody> </table> </div> </div> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> initNavTree('a00698.html',''); </script> <div id="doc-content"> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pub-static-methods">Static Public Member Functions</a> | <a href="#pro-types">Protected Types</a> | <a href="#pro-methods">Protected Member Functions</a> </div> <div class="headertitle"> <div class="title">std::shared_future< void > Class Template Reference<div class="ingroups"><a class="el" href="a01168.html">Futures</a></div></div> </div> </div> <div class="contents"> <!-- doxytag: class="std::shared_future< void >" --><!-- doxytag: inherits="__basic_future< void >" --> <p>Explicit specialization for <a class="el" href="a00698.html" title="Explicit specialization for shared_future<void>">shared_future<void></a> <a href="a00698.html#details">More...</a></p> <div class="dynheader"> Inheritance diagram for std::shared_future< void >:</div> <div class="dyncontent"> <div class="center"><img src="a02372.png" border="0" usemap="#std_1_1shared__future_3_01void_01_4_inherit__map" alt="Inheritance graph"/></div> <map name="std_1_1shared__future_3_01void_01_4_inherit__map" id="std_1_1shared__future_3_01void_01_4_inherit__map"> <area shape="rect" id="node2" href="a00001.html" title="std::__basic_future\< void \>" alt="" coords="5,181,173,211"/><area shape="rect" id="node4" href="a00290.html" title="Base class and enclosing scope." alt="" coords="45,5,168,35"/><area shape="rect" id="node6" href="a00001.html" title="Common implementation for future and shared_future." alt="" coords="105,85,279,115"/></map> <center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div> <p><a href="a02373.html">List of all members.</a></p> <h2><a name="pub-methods"></a> Public Member Functions</h2> <ul> <li><a class="el" href="a00698.html#ad638460091d07d1688a8fdb974acacc5">shared_future</a> (const <a class="el" href="a00696.html">shared_future</a> &__sf) <li><a class="el" href="a00698.html#af1c98816853e605a47fddee5618a5b13">shared_future</a> (<a class="el" href="a00696.html">shared_future</a> &&__sf) <li><a class="el" href="a00698.html#adab654f2e9dcdabe928a2ac325abffce">shared_future</a> (<a class="el" href="a00479.html">future</a>< void > &&__uf) <li><a class="anchor" id="a8230babe91c409c5a4665b3eab2f033d"></a><!-- doxytag: member="std::shared_future< void >::get" ref="a8230babe91c409c5a4665b3eab2f033d" args="()" --> void <b>get</b> () <li><a class="anchor" id="aa41d7ddb0e3b7f6537a88c0b4f3eecdb"></a><!-- doxytag: member="std::shared_future< void >::operator=" ref="aa41d7ddb0e3b7f6537a88c0b4f3eecdb" args="(const shared_future &__sf)" --> <a class="el" href="a00696.html">shared_future</a> & <b>operator=</b> (const <a class="el" href="a00696.html">shared_future</a> &__sf) <li><a class="anchor" id="ab2352d9069eec69f544cea9c3767b652"></a><!-- doxytag: member="std::shared_future< void >::operator=" ref="ab2352d9069eec69f544cea9c3767b652" args="(shared_future &&__sf)" --> <a class="el" href="a00696.html">shared_future</a> & <b>operator=</b> (<a class="el" href="a00696.html">shared_future</a> &&__sf) <li><a class="anchor" id="a483ae58386ef9710a5adf6e3e6109fdc"></a><!-- doxytag: member="std::shared_future< void >::valid" ref="a483ae58386ef9710a5adf6e3e6109fdc" args="() const" --> bool <b>valid</b> () const <li><a class="anchor" id="ae9676754ec2a4fcbf6dcc394e620d37b"></a><!-- doxytag: member="std::shared_future< void >::wait" ref="ae9676754ec2a4fcbf6dcc394e620d37b" args="() const" --> void <b>wait</b> () const <li><a class="anchor" id="a96b4d3a5c006e4d13da280dfc4b8561d"></a><!-- doxytag: member="std::shared_future< void >::wait_for" ref="a96b4d3a5c006e4d13da280dfc4b8561d" args="(const chrono::duration< _Rep, _Period > &__rel) const" --> bool <b>wait_for</b> (const <a class="el" href="a00421.html">chrono::duration</a>< _Rep, _Period > &__rel) const <li><a class="anchor" id="a37256cc6022c41c8342d83799e2ca8b4"></a><!-- doxytag: member="std::shared_future< void >::wait_until" ref="a37256cc6022c41c8342d83799e2ca8b4" args="(const chrono::time_point< _Clock, _Duration > &__abs) const" --> bool <b>wait_until</b> (const <a class="el" href="a00424.html">chrono::time_point</a>< _Clock, _Duration > &__abs) const </ul> <h2><a name="pub-static-methods"></a> Static Public Member Functions</h2> <ul> <li><a class="anchor" id="a534b62d8c8536284fb1d29b7e84cc765"></a><!-- doxytag: member="std::shared_future< void >::_S_allocate_result" ref="a534b62d8c8536284fb1d29b7e84cc765" args="(const _Allocator &__a)" --> template<typename _Res , typename _Allocator > static <a class="el" href="a00239.html">_Ptr</a>< <a class="el" href="a00294.html">_Result_alloc</a><br class="typebreak"/> < _Res, _Allocator > >::type <b>_S_allocate_result</b> (const _Allocator &__a) </ul> <h2><a name="pro-types"></a> Protected Types</h2> <ul> <li><a class="anchor" id="a748614f7a0518bf851f65aca7674c0f5"></a><!-- doxytag: member="std::shared_future< void >::__result_type" ref="a748614f7a0518bf851f65aca7674c0f5" args="" --> typedef <a class="el" href="a00291.html">__future_base::_Result</a><br class="typebreak"/> < void > & <b>__result_type</b> <li><a class="anchor" id="a2bfb971e539628565e620e3172cb10ce"></a><!-- doxytag: member="std::shared_future< void >::__state_type" ref="a2bfb971e539628565e620e3172cb10ce" args="" --> typedef <a class="el" href="a00265.html">shared_ptr</a>< <a class="el" href="a00296.html">_State_base</a> > <b>__state_type</b> </ul> <h2><a name="pro-methods"></a> Protected Member Functions</h2> <ul> <li><a class="el" href="a00293.html">__result_type</a> <a class="el" href="a00001.html#adf40aeed57ff177af6fc82fb2126a99d">_M_get_result</a> () <li><a class="anchor" id="ab764b9bf954d4af3990bc6cb943af3cd"></a><!-- doxytag: member="std::shared_future< void >::_M_swap" ref="ab764b9bf954d4af3990bc6cb943af3cd" args="(__basic_future &__that)" --> void <b>_M_swap</b> (<a class="el" href="a00001.html">__basic_future</a> &__that) </ul> <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><h3>template<><br/> class std::shared_future< void ></h3> <p>Explicit specialization for <a class="el" href="a00698.html" title="Explicit specialization for shared_future<void>">shared_future<void></a> </p> <p>Definition at line <a class="el" href="a00888_source.html#l00799">799</a> of file <a class="el" href="a00888_source.html">future</a>.</p> </div><hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="ad638460091d07d1688a8fdb974acacc5"></a><!-- doxytag: member="std::shared_future< void >::shared_future" ref="ad638460091d07d1688a8fdb974acacc5" args="(const shared_future &__sf)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="a00696.html">std::shared_future</a>< void >::<a class="el" href="a00696.html">shared_future</a> </td> <td>(</td> <td class="paramtype">const <a class="el" href="a00696.html">shared_future</a>< void > & </td> <td class="paramname"><em>__sf</em></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Copy constructor. </p> <p>Definition at line <a class="el" href="a00888_source.html#l00807">807</a> of file <a class="el" href="a00888_source.html">future</a>.</p> </div> </div> <a class="anchor" id="adab654f2e9dcdabe928a2ac325abffce"></a><!-- doxytag: member="std::shared_future< void >::shared_future" ref="adab654f2e9dcdabe928a2ac325abffce" args="(future< void > &&__uf)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="a00696.html">std::shared_future</a>< void >::<a class="el" href="a00696.html">shared_future</a> </td> <td>(</td> <td class="paramtype"><a class="el" href="a00479.html">future</a>< void > && </td> <td class="paramname"><em>__uf</em></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Construct from a future rvalue. </p> <p>Definition at line <a class="el" href="a00888_source.html#l00810">810</a> of file <a class="el" href="a00888_source.html">future</a>.</p> </div> </div> <a class="anchor" id="af1c98816853e605a47fddee5618a5b13"></a><!-- doxytag: member="std::shared_future< void >::shared_future" ref="af1c98816853e605a47fddee5618a5b13" args="(shared_future &&__sf)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="a00696.html">std::shared_future</a>< void >::<a class="el" href="a00696.html">shared_future</a> </td> <td>(</td> <td class="paramtype"><a class="el" href="a00696.html">shared_future</a>< void > && </td> <td class="paramname"><em>__sf</em></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Construct from a <a class="el" href="a00696.html" title="Primary template for shared_future.">shared_future</a> rvalue. </p> <p>Definition at line <a class="el" href="a00888_source.html#l00815">815</a> of file <a class="el" href="a00888_source.html">future</a>.</p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="adf40aeed57ff177af6fc82fb2126a99d"></a><!-- doxytag: member="std::shared_future< void >::_M_get_result" ref="adf40aeed57ff177af6fc82fb2126a99d" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="a00293.html">__result_type</a> <a class="el" href="a00001.html">std::__basic_future</a>< void >::_M_get_result </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [inline, protected, inherited]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Wait for the state to be ready and rethrow any stored exception. </p> <p>Definition at line <a class="el" href="a00888_source.html#l00545">545</a> of file <a class="el" href="a00888_source.html">future</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="a00888_source.html">future</a></li> </ul> </div> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="a01137.html">std</a> </li> <li class="navelem"><a class="el" href="a00698.html">shared_future< void ></a> </li> <li class="footer">Generated by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </li> </ul> </div> </body> </html>