/usr/include/osl/stl/hash_map.h is in libosl-dev 0.6.0-3.1.
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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | /* hash_map.h
*/
#ifndef HASH_MAP_H
#define HASH_MAP_H
#include "osl/stl/hash.h"
#include "osl/stl/pool_allocator.h"
#if (__GNUC__ >= 4 && __GNUC_MINOR__ >=3)
# include <tr1/unordered_map>
#else
# include <boost/unordered_map.hpp>
#endif
#include <cstddef>
namespace osl
{
namespace stl
{
template <class T>
struct hash;
#if (__GNUC__ >= 4 && __GNUC_MINOR__ >=3)
template<class Key, class Value, class HashFun=osl::stl::hash<Key>,
class EqualKey=std::equal_to<Key>,
class Alloc=pool_allocator<std::pair<const Key, Value> > >
struct hash_map
: public std::tr1::unordered_map<Key, Value, HashFun, EqualKey,
Alloc>
{
typedef std::tr1::unordered_map<Key, Value, HashFun, EqualKey,
Alloc> base_t;
hash_map() {}
hash_map(size_t s) : base_t(s)
{
}
~hash_map();
};
template<class Key, class Value, class HashFun, class EqualKey, class Alloc>
hash_map<Key,Value,HashFun,EqualKey,Alloc>::~hash_map()
{
}
#else
template<class Key, class Value, class HashFun=osl::stl::hash<Key>,
class EqualKey=std::equal_to<Key>, class Alloc=pool_allocator<std::pair<const Key, Value> > >
struct hash_map
: public boost::unordered_map<Key, Value, HashFun, EqualKey, Alloc>
{
typedef boost::unordered_map<Key, Value, HashFun, EqualKey,
Alloc> base_t;
hash_map() {}
hash_map(size_t s) : base_t(s)
{
}
~hash_map();
};
template<class Key, class Value, class HashFun, class EqualKey, class Alloc>
hash_map<Key,Value,HashFun,EqualKey,Alloc>::~hash_map()
{
}
#endif
} // namespace stl
using stl::hash_map;
} // namespace stl
#endif /* HASH_MAP_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
|