So, I was just wondering how could we completely erase or reset a structure so it could be reused?
I just typed this up, here you go:
typedef struct
You can just assign a constructed temporary to it:
Part my_struct; my_struct = Part(); // reset
C++11:
my_struct = {}; // reset