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 
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     }; // struct utilmm::singleton::use<>
00073 
00074   } // namespace utilmm::singleton
00075 } // namespace utilmm
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 


typelib
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Sat Jun 8 2019 18:49:22