Project

General

Profile

Feature #18655

Consider implementing std::hash<art::Ptr<T>>()

Added by Christopher Backhouse over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
01/04/2018
Due date:
% Done:

100%

Estimated time:
2.00 h
Spent time:
Scope:
Internal
Experiment:
-
SSI Package:
art
Duration:

Description

There are some use cases for storing Ptrs 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 over 2 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 over 2 years ago

  • Description updated (diff)

#3 Updated by Kyle Knoepfel over 2 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 over 2 years ago

  • % Done changed from 0 to 100

#5 Updated by Kyle Knoepfel over 2 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 over 2 years ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF