unordered_map with valarray as key

Paolo Carlini paolo.carlini@oracle.com
Tue Oct 29 19:58:00 GMT 2013


Hi,

On 10/29/2013 08:07 PM, unomas wrote:
>> The alternative is to define your own
>> hash function (not a specialization of std::hash) and use that with
>> the unordered container.
>
> Maybe a solution like hash_combine provided by boost would be more easy
>
> http://www.boost.org/doc/libs/1_54_0/doc/html/hash/reference.html#boost.hash_combine 
>
Yeah, this is already being pursued:

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3333.html

Paolo.



More information about the Libstdc++ mailing list