You do not have permission to delete messages in this group
Copy link
Report message
Sign in to 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 std-discussion
Am I right in understanding that std::vector doesn't have a std::hash specialization and hence unordered_set<vector<int>> won't compile?
If so, why doesn't std::vector have a std::hash specialization?
Was such a thing proposed and rejected for some reason?
Ville Voutilainen
unread,
Feb 4, 2016, 5:25:39 AM2/4/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to 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 std-dis...@isocpp.org
On 4 February 2016 at 12:02, Andrew Tomazos <andrew...@gmail.com> wrote:
> Am I right in understanding that std::vector doesn't have a std::hash
> specialization and hence unordered_set<vector<int>> won't compile?
Sure.
>
> If so, why doesn't std::vector have a std::hash specialization?
Because there was no time to figure out how to do it for C++11 or C++14.
>
> Was such a thing proposed and rejected for some reason?