Free since 2005 · No login required
AT

Academic Tutorials

Learn at your own pace

site-mobile-top-banner · 320x50

What is two phase construction?

According to the two phase constructor idiom all initialisation code that might leave , as well as any call to the fuction that might leave are put together into a constructor call ie; ConstructL() known as the two phase constructor. This is used for proper cleanup if any leave occurs.