00001 /* pointerHash.h 00002 */ 00003 #ifndef STL_POINTERHASH_H 00004 #define STL_POINTERHASH_H 00005 00006 namespace osl 00007 { 00008 namespace stl 00009 { 00010 template <class T> 00011 struct hash; 00012 template <class T> struct hash<T*> 00013 { 00014 size_t operator()(const T *pointer) const 00015 { 00016 return reinterpret_cast<size_t>(pointer)/8; 00017 } 00018 }; 00019 } // namespace stl 00020 } // namespace osl 00021 00022 #endif /* STL_POINTERHASH_H */ 00023 // ;;; Local Variables: 00024 // ;;; mode:c++ 00025 // ;;; c-basic-offset:2 00026 // ;;; End: