Initialization (programming): Difference between revisions

Content deleted Content added
SmackBot (talk | contribs)
m Date maintenance tags and general fixes: build 414:
A.A.Graff (talk | contribs)
Line 31:
Example:
:struct int_complex {int re, im; complex() : re(0), im(0) { }};
Here, the construct " : re(0), im(0)" is the initializer list.
 
Sometimes the term "initializer list" is also used to refer to the list of expressions in the array or struct initializer.