S
Stefan Ram
To initialize an array or ::std::vector object, I have seen both
.... a = { 1, 2, 3 };
and also
.... a{ 1, 2, 3 };
Does the use of the equals sign »=« make any difference?
(This question is not restricted to arrays and
::std::vectors as the type of »a«, but only asks
about the curly braces, not parentheses.)
.... a = { 1, 2, 3 };
and also
.... a{ 1, 2, 3 };
Does the use of the equals sign »=« make any difference?
(This question is not restricted to arrays and
::std::vectors as the type of »a«, but only asks
about the curly braces, not parentheses.)