Namespaces
Variants
Views
Actions

std::promise::swap

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

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