00001 #ifndef hash_by_cast_HEADER 00002 #define hash_by_cast_HEADER 00003 00004 /*************************************************************************** 00005 * Benoit Hudson (C) 2007. 00006 ***************************************************************************/ 00007 00008 namespace hudson { 00012 template <class T> struct hash_by_cast { 00013 size_t operator()(const T& t) const { return (size_t)(t); } 00014 }; 00015 00016 } // namespace hudson 00017 #endif
1.4.6