This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: unordered_map with valarray as key


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]