---
name: "std::__future_base::_State_base"
section: "3cxx"
platform: "linux"
package: "libstdc++6-4.6-doc"
version: "4.6.3-14"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/std::__future_base::_State_base"
---

# std::\_\_future\_base::\_State\_base(3cxx)

## NAME

std::\_\_future\_base::\_State\_base -

## SYNOPSIS

Inherited by std::\_\_future\_base::\_Async\_state\< \_Res \>, std::\_\_future\_base::\_Deferred\_state\< \_Res \>, and std::\_\_future\_base::\_Task\_state\< \_Res(\_Args...)\>.

### Public Member Functions

**\_State\_base** (const **\_State\_base** &)\
 void **\_M\_break\_promise** (\_Ptr\_type \_\_res)\
 void **\_M\_set\_result** (function\< \_Ptr\_type()\> \_\_res, bool \_\_ignore\_failure=false)\
 void **\_M\_set\_retrieved\_flag** ()\
 **\_State\_base** & **operator=** (const **\_State\_base** &)\
 **\_Result\_base** & **wait** ()\
 template\<typename \_Rep , typename \_Period \> bool **wait\_for** (const **chrono::duration**\< \_Rep, \_Period \> &\_\_rel)\
 template\<typename \_Clock , typename \_Duration \> bool **wait\_until** (const **chrono::time\_point**\< \_Clock, \_Duration \> &\_\_abs)\

### Static Public Member Functions

template\<typename \_Res , typename \_Arg \> static \_Setter\< \_Res, \_Arg && \> **\_\_setter** (**promise**\< \_Res \> \*\_\_prom, \_Arg &&\_\_arg)\
 template\<typename \_Res \> static \_Setter\< \_Res, \
 \_\_exception\_ptr\_tag \> **\_\_setter** (exception\_ptr &\_\_ex, **promise**\< \_Res \> \*\_\_prom)"\
 static \_Setter\< void, void \> **\_\_setter** (**promise**\< void \> \*\_\_prom)\
 template\<typename \_Tp \> static bool **\_S\_check** (const **shared\_ptr**\< \_Tp \> &\_\_p)\

## Detailed Description

Base class for state between a promise and one or more associated futures.

Definition at line 286 of file future.

## Author

Generated automatically by Doxygen for libstdc++ from the source code.
