one question about initializaiton list# Programming - 葵花宝典
c*g
1 楼
one statement said "The compiler iterates over the initialization list, inse
rting the initializations in the proper order within the constructor prior t
o any eplicit user code"
That's is to say, some codes are inserted to the constructor.
So why initialization list is much more efficient than constructor? just
avoid assignment operator?
What does "insert" here mean?
rting the initializations in the proper order within the constructor prior t
o any eplicit user code"
That's is to say, some codes are inserted to the constructor.
So why initialization list is much more efficient than constructor? just
avoid assignment operator?
What does "insert" here mean?