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

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

#include <GlobalVariable.h>

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

Public Member Functions

 SubstituteInShared ()
 

Detailed Description

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

Can generate overriding hooks of shared_ptr factories.

Definition at line 191 of file GlobalVariable.h.

Constructor & Destructor Documentation

◆ SubstituteInShared()

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

Definition at line 191 of file GlobalVariable.h.

192 // Generic lambda is coerced to the needed pointer-to-function type
193 [](auto &&...args) -> result_type { return
194 std::make_shared<Derived>(std::forward<decltype(args)>(args)...);
195 }
196 }{}};
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 >::SubstituteInShared< Derived >::SubstituteInShared().

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

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: