/usr/include/osl/stl/hash_set.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 | /* hash_set.h
*/
#ifndef HASH_SET_H
#define HASH_SET_H
#include "osl/stl/hash.h"
#include "osl/stl/pool_allocator.h"
#if (__GNUC__ >= 4 && __GNUC_MINOR__ >=3)
# include <tr1/unordered_set>
#else
# include <boost/unordered_set.hpp>
#endif
#include <cstddef>
namespace osl
{
namespace stl
{
#if (__GNUC__ >= 4 && __GNUC_MINOR__ >=3)
template<class Value, class HashFun=osl::stl::hash<Value>,
class Equal=std::equal_to<Value> >
struct hash_set
: public std::tr1::unordered_set<Value, HashFun, Equal, pool_allocator<Value> >
{
typedef std::tr1::unordered_set<Value, HashFun, Equal, pool_allocator<Value> > base_t;
hash_set() {}
hash_set(size_t s) : base_t(s)
{
}
};
#else
template<class Value, class HashFun=osl::stl::hash<Value>,
class Equal=std::equal_to<Value> >
struct hash_set
: public boost::unordered_set<Value, HashFun, Equal, pool_allocator<Value> >
{
typedef boost::unordered_set<Value, HashFun, Equal, pool_allocator<Value> > base_t;
hash_set() {}
hash_set(size_t s) : base_t(s)
{
}
};
#endif
} // namespace stl
using stl::hash_set;
} // namespace stl
#endif /* HASH_SET_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
|