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.
Syntaxtemplate <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.
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 constructorInitializes a new instance of the agile_ref struct, optionally with a copy of the input data.
Syntaxagile_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.
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.
SyntaxT get() const;
Return value
A proxy to the C++/WinRT object or interface referenced by the agile_ref object.
agile_ref::operator boolChecks whether the agile_ref object is targeting a valid C++/WinRT object or interface.
Syntaxexplicit operator bool() const noexcept;
Return value
true
if the agile_ref object has a valid target, otherwise false
.
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