a singleton template

<Modern c++ design> has give a SingletonHolder template, but I think it is too large, who can give a simple version that can be builded on visual studio 2013/2015?

fulfill:
1)have a static 'T& Instance()' interface
2)multiple thread support
3)the instance can live longer than any gloabal variables if it is used by the variables.
Topic archived. No new replies allowed.