tmp/tmppx7rfmiq/{from.md → to.md}
RENAMED
|
@@ -1,61 +1,83 @@
|
|
| 1 |
-
####
|
| 2 |
|
| 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 { };
|
| 14 |
-
```
|
| 15 |
-
|
| 16 |
-
*Requires:* `Alloc` shall be an Allocator ([[allocator.requirements]]).
|
| 17 |
-
|
| 18 |
<!-- Link reference definitions -->
|
| 19 |
[alg.sorting]: algorithms.md#alg.sorting
|
| 20 |
-
[allocator.requirements]: library.md#allocator.requirements
|
| 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 |
-
[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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.
|
| 34 |
[futures.overview]: #futures.overview
|
| 35 |
[futures.promise]: #futures.promise
|
| 36 |
-
[futures.
|
| 37 |
[futures.state]: #futures.state
|
| 38 |
[futures.task]: #futures.task
|
| 39 |
[futures.task.members]: #futures.task.members
|
| 40 |
[futures.task.nonmembers]: #futures.task.nonmembers
|
| 41 |
-
[futures.
|
| 42 |
-
[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 |
-
[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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.
|
|
|
|
|
|
|
| 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
|
|
@@ -85,14 +107,20 @@ template <class R, class Alloc>
|
|
| 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
|
|
@@ -103,15 +131,15 @@ template <class R, class Alloc>
|
|
| 103 |
[thread.thread.this]: #thread.thread.this
|
| 104 |
[thread.threads]: #thread.threads
|
| 105 |
[thread.timedmutex.class]: #thread.timedmutex.class
|
| 106 |
[thread.timedmutex.recursive]: #thread.timedmutex.recursive
|
| 107 |
[thread.timedmutex.requirements]: #thread.timedmutex.requirements
|
| 108 |
-
[time]:
|
| 109 |
-
[time.clock]:
|
| 110 |
-
[time.clock.req]:
|
| 111 |
-
[time.duration]:
|
| 112 |
-
[time.point]:
|
| 113 |
[unord.hash]: utilities.md#unord.hash
|
| 114 |
|
| 115 |
[^1]: All implementations for which standard time units are meaningful
|
| 116 |
must necessarily have a steady clock within their hardware
|
| 117 |
implementation.
|
|
|
|
| 1 |
+
#### Globals <a id="futures.task.nonmembers">[[futures.task.nonmembers]]</a>
|
| 2 |
|
| 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 |
<!-- Link reference definitions -->
|
| 11 |
[alg.sorting]: algorithms.md#alg.sorting
|
|
|
|
| 12 |
[atomics]: atomics.md#atomics
|
| 13 |
+
[barrier.syn]: #barrier.syn
|
| 14 |
[basic.life]: basic.md#basic.life
|
| 15 |
[basic.stc.thread]: basic.md#basic.stc.thread
|
| 16 |
[bitmask.types]: library.md#bitmask.types
|
| 17 |
+
[class.prop]: class.md#class.prop
|
| 18 |
+
[condition.variable.syn]: #condition.variable.syn
|
| 19 |
+
[cpp17.allocator]: #cpp17.allocator
|
| 20 |
+
[cpp17.defaultconstructible]: #cpp17.defaultconstructible
|
| 21 |
+
[cpp17.destructible]: #cpp17.destructible
|
| 22 |
+
[cpp17.moveassignable]: #cpp17.moveassignable
|
| 23 |
+
[cpp17.moveconstructible]: #cpp17.moveconstructible
|
| 24 |
+
[defns.block]: intro.md#defns.block
|
| 25 |
[except.terminate]: except.md#except.terminate
|
| 26 |
[func.require]: utilities.md#func.require
|
| 27 |
[future.syn]: #future.syn
|
| 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
|
| 33 |
[futures.promise]: #futures.promise
|
| 34 |
+
[futures.shared.future]: #futures.shared.future
|
| 35 |
[futures.state]: #futures.state
|
| 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]: basic.md#intro.multithread
|
| 41 |
+
[intro.races]: basic.md#intro.races
|
| 42 |
+
[latch.syn]: #latch.syn
|
| 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 |
+
[semaphore.syn]: #semaphore.syn
|
| 47 |
+
[shared.mutex.syn]: #shared.mutex.syn
|
| 48 |
+
[stopcallback]: #stopcallback
|
| 49 |
+
[stopcallback.cons]: #stopcallback.cons
|
| 50 |
+
[stopsource]: #stopsource
|
| 51 |
+
[stopsource.cons]: #stopsource.cons
|
| 52 |
+
[stopsource.mem]: #stopsource.mem
|
| 53 |
+
[stopsource.nonmembers]: #stopsource.nonmembers
|
| 54 |
+
[stoptoken]: #stoptoken
|
| 55 |
+
[stoptoken.cons]: #stoptoken.cons
|
| 56 |
+
[stoptoken.mem]: #stoptoken.mem
|
| 57 |
+
[stoptoken.nonmembers]: #stoptoken.nonmembers
|
| 58 |
[syserr]: diagnostics.md#syserr
|
| 59 |
[syserr.syserr]: diagnostics.md#syserr.syserr
|
|
|
|
| 60 |
[thread]: #thread
|
| 61 |
+
[thread.barrier]: #thread.barrier
|
| 62 |
+
[thread.barrier.class]: #thread.barrier.class
|
| 63 |
[thread.condition]: #thread.condition
|
| 64 |
[thread.condition.condvar]: #thread.condition.condvar
|
| 65 |
[thread.condition.condvarany]: #thread.condition.condvarany
|
| 66 |
[thread.condition.nonmember]: #thread.condition.nonmember
|
| 67 |
+
[thread.condvarany.intwait]: #thread.condvarany.intwait
|
| 68 |
+
[thread.condvarany.wait]: #thread.condvarany.wait
|
| 69 |
+
[thread.coord]: #thread.coord
|
| 70 |
[thread.general]: #thread.general
|
| 71 |
+
[thread.jthread.class]: #thread.jthread.class
|
| 72 |
+
[thread.jthread.cons]: #thread.jthread.cons
|
| 73 |
+
[thread.jthread.mem]: #thread.jthread.mem
|
| 74 |
+
[thread.jthread.special]: #thread.jthread.special
|
| 75 |
+
[thread.jthread.static]: #thread.jthread.static
|
| 76 |
+
[thread.jthread.stop]: #thread.jthread.stop
|
| 77 |
+
[thread.latch]: #thread.latch
|
| 78 |
+
[thread.latch.class]: #thread.latch.class
|
| 79 |
[thread.lock]: #thread.lock
|
| 80 |
[thread.lock.algorithm]: #thread.lock.algorithm
|
| 81 |
[thread.lock.guard]: #thread.lock.guard
|
| 82 |
[thread.lock.scoped]: #thread.lock.scoped
|
| 83 |
[thread.lock.shared]: #thread.lock.shared
|
|
|
|
| 107 |
[thread.req.lockable.req]: #thread.req.lockable.req
|
| 108 |
[thread.req.lockable.timed]: #thread.req.lockable.timed
|
| 109 |
[thread.req.native]: #thread.req.native
|
| 110 |
[thread.req.paramname]: #thread.req.paramname
|
| 111 |
[thread.req.timing]: #thread.req.timing
|
| 112 |
+
[thread.sema]: #thread.sema
|
| 113 |
+
[thread.sema.cnt]: #thread.sema.cnt
|
| 114 |
[thread.sharedmutex.class]: #thread.sharedmutex.class
|
| 115 |
[thread.sharedmutex.requirements]: #thread.sharedmutex.requirements
|
| 116 |
[thread.sharedtimedmutex.class]: #thread.sharedtimedmutex.class
|
| 117 |
[thread.sharedtimedmutex.requirements]: #thread.sharedtimedmutex.requirements
|
| 118 |
+
[thread.stoptoken]: #thread.stoptoken
|
| 119 |
+
[thread.stoptoken.intro]: #thread.stoptoken.intro
|
| 120 |
+
[thread.stoptoken.syn]: #thread.stoptoken.syn
|
| 121 |
+
[thread.summary]: #thread.summary
|
| 122 |
[thread.syn]: #thread.syn
|
| 123 |
[thread.thread.algorithm]: #thread.thread.algorithm
|
| 124 |
[thread.thread.assign]: #thread.thread.assign
|
| 125 |
[thread.thread.class]: #thread.thread.class
|
| 126 |
[thread.thread.constr]: #thread.thread.constr
|
|
|
|
| 131 |
[thread.thread.this]: #thread.thread.this
|
| 132 |
[thread.threads]: #thread.threads
|
| 133 |
[thread.timedmutex.class]: #thread.timedmutex.class
|
| 134 |
[thread.timedmutex.recursive]: #thread.timedmutex.recursive
|
| 135 |
[thread.timedmutex.requirements]: #thread.timedmutex.requirements
|
| 136 |
+
[time]: time.md#time
|
| 137 |
+
[time.clock]: time.md#time.clock
|
| 138 |
+
[time.clock.req]: time.md#time.clock.req
|
| 139 |
+
[time.duration]: time.md#time.duration
|
| 140 |
+
[time.point]: time.md#time.point
|
| 141 |
[unord.hash]: utilities.md#unord.hash
|
| 142 |
|
| 143 |
[^1]: All implementations for which standard time units are meaningful
|
| 144 |
must necessarily have a steady clock within their hardware
|
| 145 |
implementation.
|