<!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::__basic_future< _Res > 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('a00001.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::__basic_future< _Res > Class Template Reference<div class="ingroups"><a class="el" href="a01168.html">Futures</a></div></div> </div> </div> <div class="contents"> <!-- doxytag: class="std::__basic_future" --><!-- doxytag: inherits="std::__future_base" --> <p>Common implementation for future and <a class="el" href="a00696.html" title="Primary template for shared_future.">shared_future</a>. <a href="a00001.html#details">More...</a></p> <div class="dynheader"> Inheritance diagram for std::__basic_future< _Res >:</div> <div class="dyncontent"> <div class="center"><img src="a01748.png" border="0" usemap="#std_1_1____basic__future_3_01___res_01_4_inherit__map" alt="Inheritance graph"/></div> <map name="std_1_1____basic__future_3_01___res_01_4_inherit__map" id="std_1_1____basic__future_3_01___res_01_4_inherit__map"> <area shape="rect" id="node5" href="a00479.html" title="Primary template for future." alt="" coords="496,5,619,35"/><area shape="rect" id="node7" href="a00696.html" title="Primary template for shared_future." alt="" coords="473,59,641,88"/><area shape="rect" id="node9" href="a00001.html" title="std::__basic_future\< void \>" alt="" coords="473,112,641,141"/><area shape="rect" id="node15" href="a00001.html" title="std::__basic_future\< _Res & \>" alt="" coords="465,165,649,195"/><area shape="rect" id="node2" href="a00290.html" title="Base class and enclosing scope." alt="" coords="5,77,128,107"/><area shape="rect" id="node11" href="a00481.html" title="Explicit specialization for future<void>" alt="" coords="733,59,851,88"/><area shape="rect" id="node13" href="a00698.html" title="Explicit specialization for shared_future<void>" alt="" coords="711,112,873,141"/><area shape="rect" id="node17" href="a00480.html" title="Partial specialization for future<R&>" alt="" coords="725,165,859,195"/><area shape="rect" id="node19" href="a00697.html" title="Partial specialization for shared_future<R&>" alt="" coords="703,219,881,248"/></map> <center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div> <p><a href="a01749.html">List of all members.</a></p> <h2><a name="pub-methods"></a> Public Member Functions</h2> <ul> <li><a class="anchor" id="ac3515a284e12c8454393f06b5612d497"></a><!-- doxytag: member="std::__basic_future::__basic_future" ref="ac3515a284e12c8454393f06b5612d497" args="(const __basic_future &)" --> <b>__basic_future</b> (const <a class="el" href="a00001.html">__basic_future</a> &) <li><a class="anchor" id="a39923f2d5e768f6776cbd9b365b9ca4e"></a><!-- doxytag: member="std::__basic_future::operator=" ref="a39923f2d5e768f6776cbd9b365b9ca4e" args="(const __basic_future &)" --> <a class="el" href="a00001.html">__basic_future</a> & <b>operator=</b> (const <a class="el" href="a00001.html">__basic_future</a> &) <li><a class="anchor" id="a483ae58386ef9710a5adf6e3e6109fdc"></a><!-- doxytag: member="std::__basic_future::valid" ref="a483ae58386ef9710a5adf6e3e6109fdc" args="() const " --> bool <b>valid</b> () const <li><a class="anchor" id="ae9676754ec2a4fcbf6dcc394e620d37b"></a><!-- doxytag: member="std::__basic_future::wait" ref="ae9676754ec2a4fcbf6dcc394e620d37b" args="() const " --> void <b>wait</b> () const <li><a class="anchor" id="a96b4d3a5c006e4d13da280dfc4b8561d"></a><!-- doxytag: member="std::__basic_future::wait_for" ref="a96b4d3a5c006e4d13da280dfc4b8561d" args="(const chrono::duration< _Rep, _Period > &__rel) const " --> template<typename _Rep , typename _Period > 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::__basic_future::wait_until" ref="a37256cc6022c41c8342d83799e2ca8b4" args="(const chrono::time_point< _Clock, _Duration > &__abs) const " --> template<typename _Clock , typename _Duration > 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::__basic_future::_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::__basic_future::__result_type" ref="a748614f7a0518bf851f65aca7674c0f5" args="" --> typedef <a class="el" href="a00291.html">__future_base::_Result</a><br class="typebreak"/> < _Res > & <b>__result_type</b> <li><a class="anchor" id="a2bfb971e539628565e620e3172cb10ce"></a><!-- doxytag: member="std::__basic_future::__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="anchor" id="a293877fc8c2c66c6c9263011818cd132"></a><!-- doxytag: member="std::__basic_future::__basic_future" ref="a293877fc8c2c66c6c9263011818cd132" args="(const __state_type &__state)" --> <b>__basic_future</b> (const <a class="el" href="a00265.html">__state_type</a> &__state) <li><a class="anchor" id="ga16f6719a677d1abd14b166e136fb1541"></a><!-- doxytag: member="std::__basic_future::__basic_future" ref="ga16f6719a677d1abd14b166e136fb1541" args="(const shared_future< _Res > &)" --> <b>__basic_future</b> (const <a class="el" href="a00696.html">shared_future</a>< _Res > &) <li><a class="anchor" id="ga33116b0b83a2a0dc86cfbc625adfc6f2"></a><!-- doxytag: member="std::__basic_future::__basic_future" ref="ga33116b0b83a2a0dc86cfbc625adfc6f2" args="(shared_future< _Res > &&)" --> <b>__basic_future</b> (<a class="el" href="a00696.html">shared_future</a>< _Res > &&) <li><a class="anchor" id="ga710b6480d0f5637005c2d515315237ae"></a><!-- doxytag: member="std::__basic_future::__basic_future" ref="ga710b6480d0f5637005c2d515315237ae" args="(future< _Res > &&)" --> <b>__basic_future</b> (<a class="el" href="a00479.html">future</a>< _Res > &&) <li><a class="el" href="a00291.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::__basic_future::_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<typename _Res><br/> class std::__basic_future< _Res ></h3> <p>Common implementation for future and <a class="el" href="a00696.html" title="Primary template for shared_future.">shared_future</a>. </p> <p>Definition at line <a class="el" href="a00888_source.html#l00502">502</a> of file <a class="el" href="a00888_source.html">future</a>.</p> </div><hr/><h2>Member Function Documentation</h2> <a class="anchor" id="adf40aeed57ff177af6fc82fb2126a99d"></a><!-- doxytag: member="std::__basic_future::_M_get_result" ref="adf40aeed57ff177af6fc82fb2126a99d" args="()" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<typename _Res> </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="a00291.html">__result_type</a> <a class="el" href="a00001.html">std::__basic_future</a>< _Res >::_M_get_result </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [inline, protected]</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> <p>Referenced by <a class="el" href="a00888_source.html#l00750">std::shared_future< _Res >::get()</a>, <a class="el" href="a00888_source.html#l00706">std::future< void >::get()</a>, and <a class="el" href="a00888_source.html#l00624">std::future< _Res >::get()</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="a00001.html">__basic_future</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>