C
cpisz
I am going to make a queue of events to be dispatched to 1 or many
event handlers. I know I read that in order to use a std container I
must implement a default constructor, a copy constructor, and an
assignment operator. However, do any of these apply if I only queue up
pointers to events and then release the allocated memory after the
event has been dispatched and processed? And is that a bad idea?
event handlers. I know I read that in order to use a std container I
must implement a default constructor, a copy constructor, and an
assignment operator. However, do any of these apply if I only queue up
pointers to events and then release the allocated memory after the
event has been dispatched and processed? And is that a bad idea?