c++ Programming Glossary: single_instance
A Singleton that is not globally accessible http://stackoverflow.com/questions/3926530/a-singleton-that-is-not-globally-accessible D CRTP to give each instantiation its own flag class single_instance protected protected constructors to ensure this is used as a.. protected constructors to ensure this is used as a mixin single_instance if mConstructed throw std runtime_error already created mConstructed.. throw std runtime_error already created mConstructed true ~single_instance mConstructed false private private and not defined in order..
|