A helper function that swaps the contents of two values.
Syntaxvoid swap(winrt::com_array& left, winrt::com_array& right) noexcept;
void swap(winrt::com_ptr& left, winrt::com_ptr& right) noexcept;
void swap(winrt::handle_type& left, winrt::handle_type& right) noexcept;
void swap(winrt::hstring& left, winrt::hstring& right) noexcept;
void swap(winrt::Windows::Foundation::IUnknown& left, winrt::Windows::Foundation::IUnknown& right) noexcept;
Parameters
left
right
A value to mutually swap with that of the other parameter. For example, if the values represent pointers, then their contents are swapped so that they point at one another's target.
Minimum supported SDK: Windows SDK version 10.0.17134.0 (Windows 10, version 1803)
Namespace: winrt
Header: %WindowsSdkDir%Include<WindowsTargetPlatformVersion>\cppwinrt\winrt\base.h (included by default)
See alsoWas this page helpful?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4