A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://learn.microsoft.com/en-us/uwp/cpp-ref-for-winrt/swap below:

winrt::swap function (C++/WinRT) - Windows UWP applications

winrt::swap function (C++/WinRT)

In this article

A helper function that swaps the contents of two values.

Syntax
void 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.

Requirements

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 also

Additional resources

In this article

Was 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