31#ifndef ETL_CLOSURE_INCLUDED
32#define ETL_CLOSURE_INCLUDED
42#if ETL_USING_CPP11 && !defined(ETL_CLOSURE_FORCE_CPP03_IMPLEMENTATION)
74 ETL_CONSTEXPR14 closure(
const delegate_type&
f,
const TArgs...
args) ETL_NOEXCEPT
96 template <
size_t Index,
typename UArg>
110 template <
typename...
UArgs>
113 static_assert(
sizeof...(UArgs) ==
sizeof...(
TArgs),
"Argument count mismatch");
157 template<
typename TReturn,
typename TArg0>
197 template<
typename TReturn,
typename TArg0,
typename TArg1>
223 return m_f(m_arg0, m_arg1);
240 template<
typename TReturn,
typename TArg0,
typename TArg1,
typename TArg2>
268 return m_f(m_arg0, m_arg1, m_arg2);
287 template<
typename TReturn,
typename TArg0,
typename TArg1,
typename TArg2,
typename TArg3>
317 return m_f(m_arg0, m_arg1, m_arg2, m_arg3);
338 template<
typename TReturn,
typename TArg0,
typename TArg1,
typename TArg2,
typename TArg3,
typename TArg4>
370 return m_f(m_arg0, m_arg1, m_arg2, m_arg3, m_arg4);
TReturn operator()() const
Definition closure.h:368
closure(const delegate_type &f, const TArg0 arg0, const TArg1 arg1, const TArg2 arg2, const TArg3 arg3, const TArg4 arg4)
Definition closure.h:354
closure(const delegate_type &f, const TArg0 arg0, const TArg1 arg1, const TArg2 arg2, const TArg3 arg3)
Definition closure.h:302
TReturn operator()() const
Definition closure.h:315
closure(const delegate_type &f, const TArg0 arg0, const TArg1 arg1, const TArg2 arg2)
Definition closure.h:254
TReturn operator()() const
Definition closure.h:266
TReturn operator()() const
Definition closure.h:221
closure(const delegate_type &f, const TArg0 arg0, const TArg1 arg1)
Definition closure.h:210
TReturn operator()() const
Definition closure.h:180
etl::delegate< TReturn(TArg0)> delegate_type
The delegate type to be invoked.
Definition closure.h:163
closure(const delegate_type &f, const TArg0 arg0)
Definition closure.h:170
Base template for closure.
Definition closure.h:150
Declaration.
Definition delegate_cpp03.h:191
is_reference
Definition type_traits_generator.h:1150
bitset_ext
Definition absolute.h:38
ETL_NODISCARD ETL_CONSTEXPR14 T round_half_even_unscaled(T value) ETL_NOEXCEPT
Definition scaled_rounding.h:314