1 #ifndef GLOBAL_CTOR_H 2 #define GLOBAL_CTOR_H 3 4 class GlobalCtor 5 { 6 private: 7 int Value; 8 9 public: 10 GlobalCtor(); 11 IsInitialized()12 bool IsInitialized() const 13 { 14 return (Value == 42); 15 } 16 }; 17 18 #endif // GLOBAL_CTOR_H 19