Go to the documentation of this file.00001
00002
00003
00004 #ifndef UTILMM_SINGLETON_USE_HEADER
00005 # define UTILMM_SINGLETON_USE_HEADER
00006
00007 namespace utilmm {
00015 namespace singleton {
00016
00028 template<typename Ty>
00029 struct use {
00038 use();
00044 use(use const &other);
00045
00052 ~use();
00053
00058 Ty &instance() const;
00059
00063 Ty &operator* () const;
00071 Ty *operator->() const;
00072 };
00073
00074 }
00075 }
00076
00077 # define IN_UTILMM_SINGLETON_USE_HEADER
00078 #include "typelib/utilmm/singleton/bits/use.tcc"
00079 # undef IN_UTILMM_SINGLETON_USE_HEADER
00080 #endif // UTILMM_SINGLETON_USE_HEADER
00081