use.hh
Go to the documentation of this file.
00001 /* -*- C++ -*-
00002  * $Id: use.hh 957 2005-03-07 16:01:20Z sjoyeux $
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     }; // struct utilmm::singleton::use<>
00074 
00075   } // namespace utilmm::singleton
00076 } // namespace utilmm
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 


utilmm
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Thu Jan 2 2014 11:38:31