I know this question is simple, but it is so simple I have found no resources defining me what is a "brace-or-equals".
Are those all brace-or-equals initializer?
++++++++++++++++++++++++++++++++++++++
int foo= 42;
int foo{42};
int foo= {42};
int foo[]{41,42,43};
int foo[]={41,42,43};
struct Foo{
int data= 42;
};
Considering the aformentioned structure, with data
initialized or not, in both cases:
Foo foo{42}
Foo foo= {42}
Foo foo{.data=42}
Foo foo= {.data=42}
++++++++++++++++++++++++++++++++++++++