Merge pull request #9462 from trofi/master
Externals/rangeset: use qualified 'size_t'
This commit is contained in:
commit
2f661fec23
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue