On Tue, 15 Jan 2008 22:51:15 -0800 (PST), Pallav singh
<singh.pallav@gmail.com> wrote in comp.lang.c++:
> How can we justify that initializer list is better in performance
> than assignment list in constructor of C++ ??
Why would we want to justify it? The C++ standard does not specify or
require such a thing.
An initializer list is the preferred way to initialize the members in
a constructor. It is the only possible way to initialize reference
members and constant members. So just use initializer lists.
--
Jack Klein
Home:
http://JK-Technology.Com
FAQs for
comp.lang.c
http://c-faq.com/
comp.lang.c++
http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.club.cc.cmu.edu/~ajo/docs/FAQ-acllc.html