86 FunctionType function,Integer grain_size = DEFAULT_GRAIN_SIZE)
94 InstanceType* m_instance;
95 FunctionType m_function;
99 virtual void executeFunctor(Int32 begin, Int32 size)
105 (m_instance->*m_function)(sub_view);
122 Int32 grain_size = DEFAULT_GRAIN_SIZE)
129 void executeFunctor(Int32 begin, Int32 size)
override
131 Int32 true_begin = 0;
137 if constexpr (std::is_invocable_v<LambdaType, ItemVectorView>)
138 m_lambda_function(sub_view);
140 m_lambda_function(sub_view, true_begin);
145 const LambdaType& m_lambda_function;