I have the following question.
Check the below block of code, it initializes my members of my structure correctly.
typedef struct
{
int var00;
int var01;
}struct_;
int main()
{
struct_ my_struct;
memset(&my_struct,'\0',sizeof(struct_));
return 0;
}
My new structure now(see below), includes also an std::list. What I have to do now, to keep the memset command in the code?
typedef struct
{
int var00;
int var01;
std::list<int> my_list
}struct_list_included;
int main()
{
struct_list_included my_struct;
memset(&my_struct,'\0',sizeof(struct_list_included));
return 0;
}