Module::GenericReleaseNotifier Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Module::GenericReleaseNotifier Class.

Invokes an event handler when the last object in the current module is released. The event handler is specified by on a lambda, functor, or pointer-to-function.

template<  
   typename T  
>  
class GenericReleaseNotifier : public ReleaseNotifier;  

Parameters

T
The type of the data member that contains the location of the event handler.

Public Constructors

NameDescription
Module::GenericReleaseNotifier::GenericReleaseNotifier ConstructorInitializes a new instance of the Module::GenericReleaseNotifier class.

Public Methods

NameDescription
Module::GenericReleaseNotifier::Invoke MethodCalls the event handler associated with the current Module::GenericReleaseNotifier object.

Protected Data Members

NameDescription
Module::GenericReleaseNotifier::callback_ Data MemberHolds the lambda, functor, or pointer-to-function event handler associated with the current Module::GenericReleaseNotifier object.

ReleaseNotifier

GenericReleaseNotifier

Header: module.h

Namespace: Microsoft::WRL

Module Class

Show: