[boost-users][multi-index] hashed identity: lookup by hash value
Hello,
Given a multi_index_container with 1 hashed unique identity key (kind
of unordered set) - is there a "trivial" way to find a value by its
hash-code?
Currently, I'm using a trick with supplying custom hashing/equality
functors, but probably there's some more straightforward way?
struct Element
{//...};
size_t hash_value(const Element &e)
{ //... }
typedef mi::multi_index_container
//... The problem however is that my hash_value functions are templates, and the above definition is not compiling... Thanks!
participants (1)
-
Igor R