Audacity 3.2.0
Static Public Member Functions | List of all members
Callable::UniquePtrFactory< Type, Arguments > Struct Template Reference

Generates functions useable as non-type template parameters. More...

#include <Callable.h>

Static Public Member Functions

static auto Function (Arguments... arguments) -> std::unique_ptr< Type >
 

Detailed Description

template<typename Type, typename... Arguments>
struct Callable::UniquePtrFactory< Type, Arguments >

Generates functions useable as non-type template parameters.

Definition at line 95 of file Callable.h.

Member Function Documentation

◆ Function()

template<typename Type , typename... Arguments>
static auto Callable::UniquePtrFactory< Type, Arguments >::Function ( Arguments...  arguments) -> std::unique_ptr<Type>
inlinestatic

Definition at line 97 of file Callable.h.

98 {
99 return std::make_unique<Type>(std::forward<Arguments&&>(arguments)...);
100 }

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