System::Threading::Interlocked::Exchange method
Contents
[
Hide
]Interlocked::Exchange(T&, T) method
Exchanges value on variable: stores new value and returns the value variable had immediately before storing.
template<typename T> static std::enable_if<IsSupportedInt<T>, T>::type System::Threading::Interlocked::Exchange(T &location1, T value)
Parameter | Description |
---|---|
T | Variable type. |
Parameter | Type | Description |
---|---|---|
location1 | T& | Variable reference to change. |
value | T | Value to store. |
ReturnValue
Value of variable right before it was changed.
See Also
- Class Interlocked
- Namespace System::Threading
- Library Aspose.TeX for C++
Interlocked::Exchange(T&, T) method
Exchanges value on variable: stores new value and returns the value variable had immediately before storing. Not implemented.
template<typename T> static std::enable_if<!IsSupportedInt<T>, T>::type System::Threading::Interlocked::Exchange(T &location1, T value)
Parameter | Description |
---|---|
T | Variable type. |
Parameter | Type | Description |
---|---|---|
location1 | T& | Variable reference to change. |
value | T | Value to store. |
ReturnValue
Value of variable right before it was changed.
See Also
- Class Interlocked
- Namespace System::Threading
- Library Aspose.TeX for C++