My Project
CCallback.hpp
1 /*
2 ** EPITECH PROJECT, 2022
3 ** B-CPP-500-PAR-5-1-rtype-martin.vanaud
4 ** File description:
5 ** CCallback
6 */
7 
8 #ifndef CCALLBACK_HPP_
9  #define CCALLBACK_HPP_
10 
11  #include <functional>
12 
16 namespace component {
20  struct ccallback_t {
21  std::function<void(void)> callback;
22  };
23 }
24 
25 #endif /* !CCALLBACK_HPP_ */
component
Namespace for all components.
Definition: CDamage.hpp:14
component::ccallback_t
Structure representing a callback function.
Definition: CCallback.hpp:20
component::ccallback_t::callback
std::function< void(void)> callback
callback function to call
Definition: CCallback.hpp:21