Using C++ constructors

C++0x

Before C++0x, common initialization in multiple constructors of the same class could not be concentrated in one place in a robust, maintainable manner. A basic approach can solve this problem:

Using delegating constructors:
With the delegating constructors feature, you can concentrate common initializations in one constructor, which can make program more readable and maintainable. Delegating constructors help reduce the code size and collective size of the object files. For more information, see Using delegating constructors (C++0x).