c++ struct default values code example
Example: c++ struct constructor
struct TestStruct {
int id;
TestStruct() : id(42)
{
}
};
struct TestStruct {
int id;
TestStruct() : id(42)
{
}
};