Condividi tramite


Swap Function (Windows Runtime C++ Template Library)

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Swap Function (Windows Runtime C++ Template Library).

Supports the WRL infrastructure and is not intended to be used directly from your code.

Syntax

WRL_NOTHROW inline void Swap(  
   _Inout_ T& left,  
   _Inout_ T& right  
);  

Parameters

left
The first argument.

right
The second argument.

Return Value

Remarks

Exchanges the values of the two specified arguments.

Requirements

Header: internal.h

Namespace: Microsoft::WRL::Details

See Also

Microsoft::WRL::Details Namespace