|
SObjectizer
5.5
|
A special storage for holding timer actions. More...
#include <all.hpp>
Public Member Functions | |
| timer_action_holder ()=default | |
| timer_action_holder (const timer_action_holder &)=delete | |
| timer_action_holder (timer_action_holder &&)=delete | |
| void | assign (Action_Type &&action) |
| void | exec () const |
Private Attributes | |
| buffer_allocated_object< Action_Type > | m_action |
A special storage for holding timer actions.
If a timer action is represented by std::function<void()> then a simple std::function can be used for holding this timer action. But if a timer action is represented by some user type then we must use a internal buffer and should construct timer action instance inplace only when it is necessary.
|
default |
|
delete |
|
delete |
|
inline |
|
inline |
|
private |
1.8.14