#include <toast/singleton.hpp>
The part it doesn't help with is when it is appropriate to use a singleton. Read on for that help.
Public Types | |
| typedef T | type |
Static Public Member Functions | |
| static void | force_init () |
| static T & | instance () |
| static void | set_factory (toast::typed_factory< T > const &f) |
| set the singleton's factory function | |
| static T& toast::singleton_helper< T, HolderType, FactoryType, Enable >::instance | ( | ) | [inline, static] |
Retrieve a reference to the singleton.
Referenced by toast::async::thread_specific_request_queue::get_push(), toast::async::thread_specific_request_queue::on_push(), and toast::async::thread_specific_request_queue::pop().