www.pudn.com > Loki.rar > Test_Singleton.cpp


#include "singleton.h" 
 
using namespace ::Loki; 
 
 
struct A { ~A(){} }; 
struct B { ~B(){} }; 
struct C { ~C(){} }; 
 
unsigned int GetLongevity(C*) 
{ 
    return 1; 
} 
 
int main() 
{ 
    typedef SingletonHolder SingletonHolder1_t; 
    typedef SingletonHolder SingletonHolder2_t; 
    typedef SingletonHolder SingletonHolder3_t; 
 
    SingletonHolder1_t::Instance(); 
    SingletonHolder2_t::Instance(); 
    SingletonHolder3_t::Instance(); 
}