System::Threading::Interlocked::Exchange method
Interlocked::Exchange(T&, T) method
変数の値を交換します:新しい値を格納し、格納直前の変数の値を返します。
template<typename T> static std::enable_if<IsSupportedInt<T>, T>::type System::Threading::Interlocked::Exchange(T &location1, T value)
| パラメーター | 説明 |
|---|---|
| T | 変数の型。 |
| パラメーター | 型 | 説明 |
|---|---|---|
| location1 | T& | 変更する変数参照。 |
| value | T | 格納する値。 |
ReturnValue
変更直前の変数の値。
参照
- Class Interlocked
- Namespace System::Threading
- Library Aspose.Page for C++
Interlocked::Exchange(T&, T) method
変数の値を交換します:新しい値を格納し、格納直前の変数の値を返します。未実装です。
template<typename T> static std::enable_if<!IsSupportedInt<T>, T>::type System::Threading::Interlocked::Exchange(T &location1, T value)
| パラメーター | 説明 |
|---|---|
| T | 変数の型。 |
| パラメーター | 型 | 説明 |
|---|---|---|
| location1 | T& | 変更する変数参照。 |
| value | T | 格納する値。 |
ReturnValue
変更直前の変数の値。
参照
- Class Interlocked
- Namespace System::Threading
- Library Aspose.Page for C++