Exchange datum.
Declared in <folly/Synchronized.h>
T
exchange(T&& rhs);
Assign another datum and return the original value. Recommended because it keeps the mutex held only briefly.
The previous value of the datum.
| Name | Description |
|---|---|
| rhs | The new datum to assign. |