Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00024 
00025 #ifndef ICL_CORE_TEMPLATE_HELPER_H_INCLUDED
00026 #define ICL_CORE_TEMPLATE_HELPER_H_INCLUDED
00027 
00028 namespace icl_core {
00029 
00036 template <typename T>
00037 struct ConvertToRef
00038 {
00039   typedef const T& ToConstRef;
00040   typedef T& ToRef;
00041 };
00042 template <typename T>
00043 struct ConvertToRef<T&>
00044 {
00045   typedef T& ToConstRef;
00046   typedef T& ToRef;
00047 };
00048 
00049 
00059 template <typename T>
00060 struct DefaultConstruct
00061 {
00062   static T C()
00063   {
00064     return T();
00065   }
00066 };
00067 
00068 }
00069 
00070 #endif