Namespaces
Variants
Views
Actions

std::promise::swap

From cppreference.com
< cpp‎ | thread‎ | promise
Revision as of 21:59, 2 March 2013 by Cubbi (Talk | contribs)

 
 
Thread support library
Threads
(C++11)
this_thread namespace
(C++11)
(C++11)
(C++11)
Mutual exclusion
(C++11)
Generic lock management
(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
(C++11)
(C++11)
Condition variables
(C++11)
Futures
(C++11)
(C++11)
(C++11)
(C++11)
 
 
void swap( promise& other );
(since C++11)

Exchanges the shared states of two promise objects.

Contents

Parameters

other - the promise to swap with

Return value

(none)

Exceptions

noexcept specification:  
noexcept
  

Example

See also

Template:cpp/thread/promise/dcl list swap2