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/make-weak below:

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

winrt::make_weak function template (C++/WinRT)

In this article

A helper function that returns a weak_ref object, representing a weak reference to a C++/WinRT object or interface. For more info, and code examples, see Strong and weak references in C++/WinRT.

Syntax
template <typename T>
auto make_weak(T const& object);
Template parameters

typename T The type of C++/WinRT object or interface to make a weak reference to.

Parameters

object The C++/WinRT object or interface to make a weak reference to.

Return value

A weak_ref representing a weak reference to the C++/WinRT object or interface.

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