mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-29 16:40:39 +08:00
issue #106: make btree_container's size_type unsigned for consistency
This commit is contained in:
Vendored
+2
-2
@@ -837,7 +837,7 @@ namespace priv {
|
||||
|
||||
using allocator_type = Alloc;
|
||||
using key_type = Key;
|
||||
using size_type = std::make_signed<size_t>::type;
|
||||
using size_type = std::size_t ;
|
||||
using difference_type = ptrdiff_t;
|
||||
|
||||
// True if this is a multiset or multimap.
|
||||
@@ -2755,7 +2755,7 @@ namespace priv {
|
||||
return {0, _begin};
|
||||
}
|
||||
|
||||
if (count == size_) {
|
||||
if (count == (difference_type)size_) {
|
||||
clear();
|
||||
return {count, this->end()};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user