123456789101112131415161718192021222324252627282930313233 |
- /*
- * Author: Patrick-Christopher Mattulat
- * Company: Lynar Studios
- * E-Mail: webmaster@lynarstudios.com
- * Created: 2023-02-13
- * Changed: 2024-05-31
- *
- * */
- #ifndef LS_STD_CONDITIONAL_FUNCTION_EXECUTOR_HPP
- #define LS_STD_CONDITIONAL_FUNCTION_EXECUTOR_HPP
- #include "definition.hpp"
- #include <functional>
- namespace ls::std::core
- {
- ls_std_class ConditionalFunctionExecutor
- {
- public:
- explicit ConditionalFunctionExecutor(bool _condition);
- ~ConditionalFunctionExecutor();
- void execute(const ::std::function<void()> &_function) const;
- private:
- bool condition{};
- };
- }
- #endif
|