Swap Function (Windows Runtime C++ Template Library)
Visual Studio 2015
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.
WRL_NOTHROW inline void Swap( _Inout_ T& left, _Inout_ T& right );
Parameters
left
The first argument.
right
The second argument.
Exchanges the values of the two specified arguments.
Header: internal.h
Namespace: Microsoft::WRL::Details
Show: