mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
Switch to using std::ranges algorithms
This commit is contained in:
parent
b4cbda4e02
commit
72c79006ac
42 changed files with 90 additions and 93 deletions
|
@ -313,7 +313,7 @@ BitVector& BitVector::Set(size_type i, bool bit) {
|
|||
}
|
||||
|
||||
BitVector& BitVector::Set() {
|
||||
std::fill(bits.begin(), bits.end(), ~block_type(0));
|
||||
std::ranges::fill(bits, ~block_type(0));
|
||||
zero_unused_bits();
|
||||
return *this;
|
||||
}
|
||||
|
@ -325,7 +325,7 @@ BitVector& BitVector::Reset(size_type i) {
|
|||
}
|
||||
|
||||
BitVector& BitVector::Reset() {
|
||||
std::fill(bits.begin(), bits.end(), block_type(0));
|
||||
std::ranges::fill(bits, block_type(0));
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue