tmp/tmpg_15rjka/{from.md → to.md}
RENAMED
|
@@ -3,11 +3,11 @@
|
|
| 3 |
``` cpp
|
| 4 |
template <class R, class... ArgTypes>
|
| 5 |
void swap(packaged_task<R(ArgTypes...)>& x, packaged_task<R(ArgTypes...)>& y) noexcept;
|
| 6 |
```
|
| 7 |
|
| 8 |
-
*Effects:* `x.swap(y)`
|
| 9 |
|
| 10 |
``` cpp
|
| 11 |
template <class R, class Alloc>
|
| 12 |
struct uses_allocator<packaged_task<R>, Alloc>
|
| 13 |
: true_type { };
|
|
@@ -21,12 +21,14 @@ template <class R, class Alloc>
|
|
| 21 |
[atomics]: atomics.md#atomics
|
| 22 |
[basic.life]: basic.md#basic.life
|
| 23 |
[basic.stc.thread]: basic.md#basic.stc.thread
|
| 24 |
[bitmask.types]: library.md#bitmask.types
|
| 25 |
[class]: class.md#class
|
|
|
|
| 26 |
[except.terminate]: except.md#except.terminate
|
| 27 |
[func.require]: utilities.md#func.require
|
|
|
|
| 28 |
[futures]: #futures
|
| 29 |
[futures.async]: #futures.async
|
| 30 |
[futures.errors]: #futures.errors
|
| 31 |
[futures.future_error]: #futures.future_error
|
| 32 |
[futures.overview]: #futures.overview
|
|
@@ -36,24 +38,28 @@ template <class R, class Alloc>
|
|
| 36 |
[futures.task]: #futures.task
|
| 37 |
[futures.task.members]: #futures.task.members
|
| 38 |
[futures.task.nonmembers]: #futures.task.nonmembers
|
| 39 |
[futures.unique_future]: #futures.unique_future
|
| 40 |
[intro.multithread]: intro.md#intro.multithread
|
|
|
|
| 41 |
[res.on.data.races]: library.md#res.on.data.races
|
| 42 |
[res.on.exception.handling]: library.md#res.on.exception.handling
|
|
|
|
| 43 |
[syserr]: diagnostics.md#syserr
|
| 44 |
[syserr.syserr]: diagnostics.md#syserr.syserr
|
| 45 |
[tab:thread.lib.summary]: #tab:thread.lib.summary
|
| 46 |
[thread]: #thread
|
| 47 |
[thread.condition]: #thread.condition
|
| 48 |
[thread.condition.condvar]: #thread.condition.condvar
|
| 49 |
[thread.condition.condvarany]: #thread.condition.condvarany
|
|
|
|
| 50 |
[thread.decaycopy]: #thread.decaycopy
|
| 51 |
[thread.general]: #thread.general
|
| 52 |
[thread.lock]: #thread.lock
|
| 53 |
[thread.lock.algorithm]: #thread.lock.algorithm
|
| 54 |
[thread.lock.guard]: #thread.lock.guard
|
|
|
|
| 55 |
[thread.lock.shared]: #thread.lock.shared
|
| 56 |
[thread.lock.shared.cons]: #thread.lock.shared.cons
|
| 57 |
[thread.lock.shared.locking]: #thread.lock.shared.locking
|
| 58 |
[thread.lock.shared.mod]: #thread.lock.shared.mod
|
| 59 |
[thread.lock.shared.obs]: #thread.lock.shared.obs
|
|
@@ -79,12 +85,15 @@ template <class R, class Alloc>
|
|
| 79 |
[thread.req.lockable.req]: #thread.req.lockable.req
|
| 80 |
[thread.req.lockable.timed]: #thread.req.lockable.timed
|
| 81 |
[thread.req.native]: #thread.req.native
|
| 82 |
[thread.req.paramname]: #thread.req.paramname
|
| 83 |
[thread.req.timing]: #thread.req.timing
|
|
|
|
|
|
|
| 84 |
[thread.sharedtimedmutex.class]: #thread.sharedtimedmutex.class
|
| 85 |
[thread.sharedtimedmutex.requirements]: #thread.sharedtimedmutex.requirements
|
|
|
|
| 86 |
[thread.thread.algorithm]: #thread.thread.algorithm
|
| 87 |
[thread.thread.assign]: #thread.thread.assign
|
| 88 |
[thread.thread.class]: #thread.thread.class
|
| 89 |
[thread.thread.constr]: #thread.thread.constr
|
| 90 |
[thread.thread.destr]: #thread.thread.destr
|
|
|
|
| 3 |
``` cpp
|
| 4 |
template <class R, class... ArgTypes>
|
| 5 |
void swap(packaged_task<R(ArgTypes...)>& x, packaged_task<R(ArgTypes...)>& y) noexcept;
|
| 6 |
```
|
| 7 |
|
| 8 |
+
*Effects:* As if by `x.swap(y)`.
|
| 9 |
|
| 10 |
``` cpp
|
| 11 |
template <class R, class Alloc>
|
| 12 |
struct uses_allocator<packaged_task<R>, Alloc>
|
| 13 |
: true_type { };
|
|
|
|
| 21 |
[atomics]: atomics.md#atomics
|
| 22 |
[basic.life]: basic.md#basic.life
|
| 23 |
[basic.stc.thread]: basic.md#basic.stc.thread
|
| 24 |
[bitmask.types]: library.md#bitmask.types
|
| 25 |
[class]: class.md#class
|
| 26 |
+
[condition_variable.syn]: #condition_variable.syn
|
| 27 |
[except.terminate]: except.md#except.terminate
|
| 28 |
[func.require]: utilities.md#func.require
|
| 29 |
+
[future.syn]: #future.syn
|
| 30 |
[futures]: #futures
|
| 31 |
[futures.async]: #futures.async
|
| 32 |
[futures.errors]: #futures.errors
|
| 33 |
[futures.future_error]: #futures.future_error
|
| 34 |
[futures.overview]: #futures.overview
|
|
|
|
| 38 |
[futures.task]: #futures.task
|
| 39 |
[futures.task.members]: #futures.task.members
|
| 40 |
[futures.task.nonmembers]: #futures.task.nonmembers
|
| 41 |
[futures.unique_future]: #futures.unique_future
|
| 42 |
[intro.multithread]: intro.md#intro.multithread
|
| 43 |
+
[mutex.syn]: #mutex.syn
|
| 44 |
[res.on.data.races]: library.md#res.on.data.races
|
| 45 |
[res.on.exception.handling]: library.md#res.on.exception.handling
|
| 46 |
+
[shared_mutex.syn]: #shared_mutex.syn
|
| 47 |
[syserr]: diagnostics.md#syserr
|
| 48 |
[syserr.syserr]: diagnostics.md#syserr.syserr
|
| 49 |
[tab:thread.lib.summary]: #tab:thread.lib.summary
|
| 50 |
[thread]: #thread
|
| 51 |
[thread.condition]: #thread.condition
|
| 52 |
[thread.condition.condvar]: #thread.condition.condvar
|
| 53 |
[thread.condition.condvarany]: #thread.condition.condvarany
|
| 54 |
+
[thread.condition.nonmember]: #thread.condition.nonmember
|
| 55 |
[thread.decaycopy]: #thread.decaycopy
|
| 56 |
[thread.general]: #thread.general
|
| 57 |
[thread.lock]: #thread.lock
|
| 58 |
[thread.lock.algorithm]: #thread.lock.algorithm
|
| 59 |
[thread.lock.guard]: #thread.lock.guard
|
| 60 |
+
[thread.lock.scoped]: #thread.lock.scoped
|
| 61 |
[thread.lock.shared]: #thread.lock.shared
|
| 62 |
[thread.lock.shared.cons]: #thread.lock.shared.cons
|
| 63 |
[thread.lock.shared.locking]: #thread.lock.shared.locking
|
| 64 |
[thread.lock.shared.mod]: #thread.lock.shared.mod
|
| 65 |
[thread.lock.shared.obs]: #thread.lock.shared.obs
|
|
|
|
| 85 |
[thread.req.lockable.req]: #thread.req.lockable.req
|
| 86 |
[thread.req.lockable.timed]: #thread.req.lockable.timed
|
| 87 |
[thread.req.native]: #thread.req.native
|
| 88 |
[thread.req.paramname]: #thread.req.paramname
|
| 89 |
[thread.req.timing]: #thread.req.timing
|
| 90 |
+
[thread.sharedmutex.class]: #thread.sharedmutex.class
|
| 91 |
+
[thread.sharedmutex.requirements]: #thread.sharedmutex.requirements
|
| 92 |
[thread.sharedtimedmutex.class]: #thread.sharedtimedmutex.class
|
| 93 |
[thread.sharedtimedmutex.requirements]: #thread.sharedtimedmutex.requirements
|
| 94 |
+
[thread.syn]: #thread.syn
|
| 95 |
[thread.thread.algorithm]: #thread.thread.algorithm
|
| 96 |
[thread.thread.assign]: #thread.thread.assign
|
| 97 |
[thread.thread.class]: #thread.thread.class
|
| 98 |
[thread.thread.constr]: #thread.thread.constr
|
| 99 |
[thread.thread.destr]: #thread.thread.destr
|