[Cs3] order of intializer invocation
Mikhail Nesterenko
mikhail at cs.kent.edu
Tue Oct 25 17:50:04 EDT 2016
CS3 students,
in the initializer list, the order of individual initializers is not
important to the execution. The member variable initializers may be
freely mixed with base class constructor invocation. The order of
initialization is determined by the inheritance hierarchy and the
lising of the data members in the class definition. Here is the
reference:
http://en.cppreference.com/w/cpp/language/initializer_list
Look under "Initialization Order".
Thanks,
--
Mikhail
More information about the cs3
mailing list