hash_by_cast.h

Go to the documentation of this file.
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

Generated on Thu Mar 27 19:04:14 2008 by  doxygen 1.4.6