Closed peter-moran closed 3 years ago
Should "just" need tests now
@serge-sans-paille should be good to re-review. I've addressed all your comments and added new tests which should have full coverage of the new non-const methods of map and unordered map.
If that all looks good I'd like to wrap up by adding a section to the readme explaining this feature.
@serge-sans-paille should be ready for a final review. I've updated the docs to explain the new functionality.
Thanks!
As discussed in #105, this library could support
map
s andunordered_map
s where the keys are immutable and chosen at compile time, but the values are mutable.This PR accomplishes this by adding non-const implementations of functions in
map
andunordered_map
.To avoid code duplication, I made template functions that the const and non-const functions can call to. By doing this, the compiler can generate the const and non-const implementation from one template.
Additional tests, documentation, and examples should be added with this PR, but I was hoping to get some implementation feedback for now.