Go to the documentation of this file.00001
00002
00003
00004 #ifndef UTILMM_SINGLETON_USE_HEADER
00005 # define UTILMM_SINGLETON_USE_HEADER
00006 #include "utilmm/config/config.h"
00007
00008 namespace utilmm {
00016 namespace singleton {
00017
00029 template<typename Ty>
00030 struct use {
00039 use();
00045 use(use const &other);
00046
00053 ~use();
00054
00059 Ty &instance() const;
00060
00064 Ty &operator* () const;
00072 Ty *operator->() const;
00073 };
00074
00075 }
00076 }
00077
00078 # define IN_UTILMM_SINGLETON_USE_HEADER
00079 #include "utilmm/singleton/bits/use.tcc"
00080 # undef IN_UTILMM_SINGLETON_USE_HEADER
00081 #endif // UTILMM_SINGLETON_USE_HEADER
00082