The Stream
basic_ios::init is called from within basic_ostream's constructor. This is where things get complicated. As basic_ios is a virtual base class of basic_ostream, the objects which make up an ostream object are initialised in the following order (see 12.6.2/5):