Audacity 3.2.0
Public Member Functions | List of all members
TypeSwitch::detail::Invoker< R, Exec, ObjectTypes >::Base Struct Reference

Public Member Functions

template<typename Object , typename Functions , typename... Args>
operator() (Object &object, const Functions &functions, Args &&...) const
 

Detailed Description

template<typename R, typename Exec, typename ObjectTypes>
struct TypeSwitch::detail::Invoker< R, Exec, ObjectTypes >::Base

Definition at line 170 of file TypeSwitch.h.

Member Function Documentation

◆ operator()()

template<typename R , typename Exec , typename ObjectTypes >
template<typename Object , typename Functions , typename... Args>
R TypeSwitch::detail::Invoker< R, Exec, ObjectTypes >::Base::operator() ( Object &  object,
const Functions &  functions,
Args &&  ... 
) const
inline

Definition at line 172 of file TypeSwitch.h.

173 {
174 // This should never be reached at run-time, because an Executor
175 // generated for (const) Object should have been the catch-all.
176 assert(false);
177 if constexpr (std::is_void_v<R>)
178 return;
179 else
180 return R{};
181 }

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