/** @file * Hash function for various things */ /* Authors: * Krzysztof KosiƄski * * Copyright (C) 2009 Authors * Released under GNU GPL, read the file 'COPYING' for more information */ #ifndef SEEN_UTIL_HASH_H #define SEEN_UTIL_HASH_H #include namespace std { namespace tr1 { /** Hash function for Boost shared pointers */ template struct hash< boost::shared_ptr > : public std::unary_function, size_t> { size_t operator()(boost::shared_ptr p) const { return reinterpret_cast(p.get()); } }; } // namespace tr1 } // namespace std #endif /* Local Variables: mode:c++ c-file-style:"stroustrup" c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +)) indent-tabs-mode:nil fill-column:99 End: */ // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :