Audacity 3.2.0
Public Types | Public Member Functions | List of all members
TypeSwitch::detail::Executor< R, ArgumentTypes, Funs, Args >::NoOp::type Struct Reference

#include <TypeSwitch.h>

Public Types

enum  : unsigned { SetUsed = 0 }
 Constant used in a compile-time check. More...
 
using Functions = FunctionTuple< Nil >
 

Public Member Functions

operator() (ArgumentType &, const Functions &, Args &&...) const
 No functions matched, so do nothing. More...
 

Detailed Description

template<typename R, typename ArgumentTypes, typename Funs, typename... Args>
struct TypeSwitch::detail::Executor< R, ArgumentTypes, Funs, Args >::NoOp::type

Definition at line 40 of file TypeSwitch.h.

Member Typedef Documentation

◆ Functions

template<typename R , typename ArgumentTypes , typename Funs , typename... Args>
using TypeSwitch::detail::Executor< R, ArgumentTypes, Funs, Args >::NoOp::type::Functions = FunctionTuple<Nil>

Definition at line 41 of file TypeSwitch.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename R , typename ArgumentTypes , typename Funs , typename... Args>
anonymous enum : unsigned

Constant used in a compile-time check.

Enumerator
SetUsed 

Definition at line 44 of file TypeSwitch.h.

Member Function Documentation

◆ operator()()

template<typename R , typename ArgumentTypes , typename Funs , typename... Args>
R TypeSwitch::detail::Executor< R, ArgumentTypes, Funs, Args >::NoOp::type::operator() ( ArgumentType ,
const Functions ,
Args &&  ... 
) const
inline

No functions matched, so do nothing.

Definition at line 46 of file TypeSwitch.h.

46 {
47 if constexpr (std::is_void_v<R>)
48 return;
49 else
50 return R{};
51 }

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