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/agile-ref below:

winrt::agile_ref struct template (C++/WinRT) - Windows UWP applications

A type representing an agile reference to a C++/WinRT object or interface. For more info, and code examples, see Agile objects in C++/WinRT.

Syntax
template <typename T>
struct agile_ref
Template parameters

typename T The type of C++/WinRT object or interface an agile reference to which is represented by the agile_ref object. This is the type of the agile reference'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)

Constructors Member functions Function Description agile_ref::get function Retrieves a proxy to the target of the agile_ref object that may safely be used within any thread context in which get is called. Member operators agile_ref::agile_ref constructor

Initializes a new instance of the agile_ref struct, optionally with a copy of the input data.

Syntax
agile_ref(std::nullptr_t = nullptr) noexcept;
agile_ref(T const& object);
Parameters

object A C++/WinRT object or interface that initializes the agile_ref object.

agile_ref::get function

Retrieves a proxy to the target of the agile_ref object, which may safely be used within any thread context in which get is called.

Syntax
T get() const;
Return value

A proxy to the C++/WinRT object or interface referenced by the agile_ref object.

agile_ref::operator bool

Checks whether the agile_ref object is targeting a valid C++/WinRT object or interface.

Syntax
explicit operator bool() const noexcept;
Return value

true if the agile_ref object has a valid target, otherwise false.

See also

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