Opened 9 years ago
Last modified 9 years ago
#8684 new Feature Requests
Provide a map-like container with key derivable from value
Reported by: | Owned by: | Ion Gaztañaga | |
---|---|---|---|
Milestone: | To Be Determined | Component: | container |
Version: | Boost 1.53.0 | Severity: | Not Applicable |
Keywords: | Cc: |
Description
It would be nice to have a key-value associative container for which the user can provide a functor to derive a key from a value so that no additional memory to store the key is used.
This is different from a set in that the key- and value-types don't have to match.
Note:
See TracTickets
for help on using tickets.
Looks like this will be possible in C++14 with the change introduced in N3465. I'd link to the proposal, but it won't let me.