<!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::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('a00481.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> | <a href="#friends">Friends</a> </div> <div class="headertitle"> <div class="title">std::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::future< void >" --><!-- doxytag: inherits="__basic_future< void >" --> <p>Explicit specialization for <a class="el" href="a00481.html" title="Explicit specialization for future<void>">future<void></a> <a href="a00481.html#details">More...</a></p> <div class="dynheader"> Inheritance diagram for std::future< void >:</div> <div class="dyncontent"> <div class="center"><img src="a02026.png" border="0" usemap="#std_1_1future_3_01void_01_4_inherit__map" alt="Inheritance graph"/></div> <map name="std_1_1future_3_01void_01_4_inherit__map" id="std_1_1future_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="a02027.html">List of all members.</a></p> <h2><a name="pub-methods"></a> Public Member Functions</h2> <ul> <li><a class="el" href="a00481.html#a5c35d4b6e484597c889588afa7187eeb">future</a> (<a class="el" href="a00479.html">future</a> &&__uf) <li><a class="anchor" id="a1d7f1f53230c6fe729d72e6056cd605c"></a><!-- doxytag: member="std::future< void >::future" ref="a1d7f1f53230c6fe729d72e6056cd605c" args="(const future &)" --> <b>future</b> (const <a class="el" href="a00479.html">future</a> &) <li>void <a class="el" href="a00481.html#a22b2cb90803ba2cae78dafa81ba278d6">get</a> () <li><a class="anchor" id="a4e66c9cf72779c6e9f83872ebf8b816d"></a><!-- doxytag: member="std::future< void >::operator=" ref="a4e66c9cf72779c6e9f83872ebf8b816d" args="(const future &)" --> <a class="el" href="a00479.html">future</a> & <b>operator=</b> (const <a class="el" href="a00479.html">future</a> &) <li><a class="anchor" id="a1317998ec31c933dd34c8bcca16a7628"></a><!-- doxytag: member="std::future< void >::operator=" ref="a1317998ec31c933dd34c8bcca16a7628" args="(future &&__fut)" --> <a class="el" href="a00479.html">future</a> & <b>operator=</b> (<a class="el" href="a00479.html">future</a> &&__fut) <li><a class="anchor" id="a483ae58386ef9710a5adf6e3e6109fdc"></a><!-- doxytag: member="std::future< void >::valid" ref="a483ae58386ef9710a5adf6e3e6109fdc" args="() const" --> bool <b>valid</b> () const <li><a class="anchor" id="ae9676754ec2a4fcbf6dcc394e620d37b"></a><!-- doxytag: member="std::future< void >::wait" ref="ae9676754ec2a4fcbf6dcc394e620d37b" args="() const" --> void <b>wait</b> () const <li><a class="anchor" id="a96b4d3a5c006e4d13da280dfc4b8561d"></a><!-- doxytag: member="std::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::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::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::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> </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::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> <h2><a name="friends"></a> Friends</h2> <ul> <li><a class="anchor" id="ac5a8c5ace4832c5c1fc051c3cf6f8673"></a><!-- doxytag: member="std::future< void >::async" ref="ac5a8c5ace4832c5c1fc051c3cf6f8673" args="(launch, _Fn &&, _Args &&...)" --> template<typename _Fn , typename... _Args> <a class="el" href="a00479.html">future</a>< typename result_of<br class="typebreak"/> < _Fn(_Args...)>::type > <b>async</b> (<a class="el" href="a01168.html#ga6f4ad125d364f01560e2ed20a3c8bb5b">launch</a>, _Fn &&, _Args &&...) <li><a class="anchor" id="a0b3d6818480e95d3e176f1c854c98acb"></a><!-- doxytag: member="std::future< void >::packaged_task" ref="a0b3d6818480e95d3e176f1c854c98acb" args="" --> class <b>packaged_task</b> <li><a class="anchor" id="a2814d08166fbffc0f995f7b63e7877dc"></a><!-- doxytag: member="std::future< void >::promise< void >" ref="a2814d08166fbffc0f995f7b63e7877dc" args="" --> class <b>promise< void ></b> </ul> <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><h3>template<><br/> class std::future< void ></h3> <p>Explicit specialization for <a class="el" href="a00481.html" title="Explicit specialization for future<void>">future<void></a> </p> <p>Definition at line <a class="el" href="a00888_source.html#l00674">674</a> of file <a class="el" href="a00888_source.html">future</a>.</p> </div><hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a5c35d4b6e484597c889588afa7187eeb"></a><!-- doxytag: member="std::future< void >::future" ref="a5c35d4b6e484597c889588afa7187eeb" args="(future &&__uf)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="a00479.html">std::future</a>< void >::<a class="el" href="a00479.html">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>Move constructor. </p> <p>Definition at line <a class="el" href="a00888_source.html#l00692">692</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::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> <a class="anchor" id="a22b2cb90803ba2cae78dafa81ba278d6"></a><!-- doxytag: member="std::future< void >::get" ref="a22b2cb90803ba2cae78dafa81ba278d6" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void <a class="el" href="a00479.html">std::future</a>< void >::get </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Retrieving the value. </p> <p>Definition at line <a class="el" href="a00888_source.html#l00706">706</a> of file <a class="el" href="a00888_source.html">future</a>.</p> <p>References <a class="el" href="a00888_source.html#l00545">std::__basic_future< _Res >::_M_get_result()</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="a00481.html">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>