Why is constructor initializer lists faster and easier to use rather than assigning the variable inside the constructor’s body.
Asked
Active
Viewed 694 times
0
-
1Members are default initialized and then copy constructed when assigning inside ctor's body. – Ch3steR Jan 02 '22 at 04:26
-
Related: [Why should I prefer to use member initialization lists?](https://stackoverflow.com/q/926752) – Ch3steR Jan 02 '22 at 04:36