realroot_doc 0.1.1
/Users/mourrain/Devel/mmx/realroot/include/realroot/texp_integerof.hpp
Go to the documentation of this file.
00001 #ifndef realroot_ARITHM_INTEGEROF_H
00002 #define realroot_ARITHM_INTEGEROF_H
00003 
00004 #include <realroot/texp_kernelof.hpp>
00005 
00006 namespace mmx {
00007 
00008 namespace texp {
00009 
00010   template<class X>
00011   struct integerof_ { typedef int T; };
00012   template<class K, class X>
00013   struct kernel_integerof { typedef typename K::integer T; };
00014   template<class X>
00015   struct kernel_integerof<null_t,X> { typedef typename integerof_<X>::T T; };
00016   template<class X>
00017   struct integerof
00018   {
00019     typedef typename ucstref<X>::T _X;
00020     typedef typename kernel_integerof< typename kernelof<X>::T, _X  >::T T;
00021   };
00022   
00023 };
00024 
00025 }// end namespace mmx
00026 
00027 #endif