Closed lhmouse closed 2 years ago
Source code is available at https://github.com/lhmouse/asteria/blob/master/rocket/cow_hashmap.hpp.
The interface of this container is very similar to std::unordered_map, except that:
std::unordered_map
begin()
find()
const_iterator
mut_begin()
mut_find()
equal_range()
erase()
Thanks in advance.
I accept pull requests!
Thank you. Will do that.
Source code is available at https://github.com/lhmouse/asteria/blob/master/rocket/cow_hashmap.hpp.
The interface of this container is very similar to
std::unordered_map
, except that:begin()
,find()
etc. returnconst_iterator
. In order to get mutable iterators, it is necessary to callmut_begin()
,mut_find()
etc.equal_range()
is not supported.erase()
may invalidate iterators.Thanks in advance.