/usr/include/osl/stl/pointerHash.h is in libosl-dev 0.6.0-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | /* pointerHash.h
*/
#ifndef STL_POINTERHASH_H
#define STL_POINTERHASH_H
namespace osl
{
namespace stl
{
template <class T>
struct hash;
template <class T> struct hash<T*>
{
size_t operator()(const T *pointer) const
{
return reinterpret_cast<size_t>(pointer)/8;
}
};
} // namespace stl
} // namespace osl
#endif /* STL_POINTERHASH_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
|