|
Boost Users : |
Subject: Re: [Boost-users] Hashtable
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2010-11-11 16:30:01
On 08/11/2010 18:18, Ricardo Uribe Lobello wrote:
>
> Good afternoon,
>
> I have been trying to use the boost::intrusive::hashtable class but i
> don't understand
> clearly how it works. Additionally, I would like to change the hashing
> function used.
> Where can i get some example of the hashtable usage?
It's very similar to unordered_set, see
To change the hash function add hash<> template option parameter:
using ::boost::intrusive;
hashtable<T, hash<my_hash_func> > htable
(BaseSet::bucket_traits(buckets_ptr, buckets_size);
Best,
Ion
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net