You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Hi,
I have the following:
std::unordered_set<std::string*>
Will it hash by default (C++11 or higher) by address or by string ?
If so, is it the reasonably good solution to use the wrapper for std::hash<std::string> ?
thanks for clarification
Chris Vine
unread,
Oct 3, 2017, 1:25:48 PM10/3/17
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
The hash of a pointer is usually just a reinterpret_cast to std::size_t
(it is in gcc's libstdc++). Hashing by std::string does not look
sensible, but I don't know your use case nor what you want to be
clarified.