Feature #18655
Consider implementing std::hash<art::Ptr<T>>()
Scope:
Internal
Experiment:
-
SSI Package:
art
Description
There are some use cases for storing Ptr
s in a std::unordered_set
or std::unordered_map
. I think a simple
return std::hash(ptr.get());probably works for this case.
History
#1 Updated by Kyle Knoepfel about 3 years ago
- Status changed from New to Accepted
- Estimated time set to 2.00 h
We are able to do this.
#2 Updated by Kyle Knoepfel about 3 years ago
- Description updated (diff)
#3 Updated by Kyle Knoepfel about 3 years ago
- Category set to Infrastructure
- Status changed from Accepted to Assigned
- Assignee set to Marc Paterno
Developer's note: the comments in IPRHelper
need to be updated to reflect implementing this feature.
#4 Updated by Marc Paterno about 3 years ago
- % Done changed from 0 to 100
#5 Updated by Kyle Knoepfel about 3 years ago
- Project changed from art to canvas
- Category deleted (
Infrastructure) - Status changed from Assigned to Resolved
- Target version set to 2.10.00
- SSI Package art added
#6 Updated by Kyle Knoepfel about 3 years ago
- Status changed from Resolved to Closed