Namespaces
Variants
Views
Actions

std::shared_future

From cppreference.com
< cpp‎ | thread
Revision as of 20:02, 31 May 2013 by P12bot (Talk | contribs)

 
 
Concurrency support library
Threads
(C++11)
(C++20)
this_thread namespace
(C++11)
(C++11)
(C++11)
Cooperative cancellation
Mutual exclusion
(C++11)
Generic lock management
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
Condition variables
(C++11)
Semaphores
Latches and Barriers
(C++20)
(C++20)
Futures
(C++11)
(C++11)
shared_future
(C++11)
(C++11)
(C++11)
Safe Reclamation
(C++26)
Hazard Pointers
Atomic types
(C++11)
(C++20)
Initialization of atomic types
(C++11)(deprecated in C++20)
(C++11)(deprecated in C++20)
Memory ordering
Free functions for atomic operations
Free functions for atomic flags
 
 
Defined in header <future>
template< class T > class shared_future;
(1) (since C++11)
template< class T > class shared_future<T&>;
(2) (since C++11)
template<>          class shared_future<void>;
(3) (since C++11)

Member functions

Template:cpp/thread/future/dcl list getTemplate:cpp/thread/future/dcl list validTemplate:cpp/thread/future/dcl list waitTemplate:cpp/thread/future/dcl list wait forTemplate:cpp/thread/future/dcl list wait until
constructs the future object
(public member function)
destructs the future object
(public member function)
assigns the contents
(public member function)
Getting the result
State