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

A helper function template that determines whether or not the provided GUID is that of one of the specified runtime classes, coclasses, or interfaces.

You can provide your own specialization(s) of winrt::is_guid_of. For more details, and code examples, see Implement a COM interface that derives from another.

Syntax

template <typename... T>
bool is_guid_of(winrt::guid const& id) noexcept;

Template parameters

typename... T A variadic template parameter pack containing the types of the runtime classes, coclasses, or interfaces whose GUIDs you wish to match against the provided one.

Parameters

id A winrt::guid function object of type F.

Return value

true if id matches the GUID of one of the types T; otherwise, false.

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