Merge pull request #9462 from trofi/master

Externals/rangeset: use qualified 'size_t'
This commit is contained in:
Léo Lam 2021-01-28 21:44:30 +01:00 committed by GitHub
commit 2f661fec23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,7 @@
#pragma once
#include <cassert>
#include <cstddef>
#include <map>
namespace HyoutaUtilities {
@ -217,7 +218,7 @@ public:
return get_from(it) <= value && value < get_to(it);
}
size_t size() const {
std::size_t size() const {
return Map.size();
}

View File

@ -1,6 +1,7 @@
#pragma once
#include <cassert>
#include <cstddef>
#include <map>
#include <type_traits>
@ -322,7 +323,7 @@ public:
return get_from(it) <= value && value < get_to(it);
}
size_t size() const {
std::size_t size() const {
return Map.size();
}
@ -330,7 +331,7 @@ public:
return Map.empty();
}
size_t by_size_count(const SizeT& key) const {
std::size_t by_size_count(const SizeT& key) const {
return Sizes.count(key);
}