Audacity 3.2.0
Public Member Functions | List of all members
GlobalHook< Tag, Signature, Default, Options >::SubstituteInUnique< Derived > Struct Template Reference

Can generate overriding hooks of unique_ptr factories. More...

#include <GlobalVariable.h>

Inheritance diagram for GlobalHook< Tag, Signature, Default, Options >::SubstituteInUnique< Derived >:
[legend]
Collaboration diagram for GlobalHook< Tag, Signature, Default, Options >::SubstituteInUnique< Derived >:
[legend]

Public Member Functions

 SubstituteInUnique ()
 

Detailed Description

template<typename Tag, typename Signature, auto Default = nullptr, auto... Options>
template<typename Derived>
struct GlobalHook< Tag, Signature, Default, Options >::SubstituteInUnique< Derived >

Can generate overriding hooks of unique_ptr factories.

Definition at line 182 of file GlobalVariable.h.

Constructor & Destructor Documentation

◆ SubstituteInUnique()

template<typename Tag , typename Signature , auto Default = nullptr, auto... Options>
template<typename Derived >
GlobalHook< Tag, Signature, Default, Options >::SubstituteInUnique< Derived >::SubstituteInUnique ( )
inline

Definition at line 182 of file GlobalVariable.h.

183 // Generic lambda is coerced to the needed pointer-to-function type
184 [](auto &&...args) -> result_type { return
185 std::make_unique<Derived>(std::forward<decltype(args)>(args)...);
186 }
187 }{}};
typename std::function< Signature >::result_type result_type
typename GlobalVariable< Tag, const std::function< Signature >, Default, Options... >::Scope Scope
STL namespace.

References GlobalHook< Tag, Signature, Default, Options >::SubstituteInUnique< Derived >::SubstituteInUnique().

Referenced by GlobalHook< Tag, Signature, Default, Options >::SubstituteInUnique< Derived >::SubstituteInUnique().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this struct was generated from the following file: