mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-18 10:10:35 +03:00
Merge pull request #277 from isildur-g/wip-cppcheck271
phase 1 of addressing cppcheck useStlAlgorithm warnings for fill and copy operations
This commit is contained in:
@@ -89,9 +89,7 @@ public:
|
||||
|
||||
/// Set all bits.
|
||||
void setall() {
|
||||
for (auto &e : bits) {
|
||||
e = all_ones;
|
||||
}
|
||||
std::fill(bits.begin(), bits.end(), all_ones);
|
||||
clear_trailer();
|
||||
}
|
||||
|
||||
@@ -102,9 +100,7 @@ public:
|
||||
|
||||
/// Clear all bits.
|
||||
void clear() {
|
||||
for (auto &e : bits) {
|
||||
e = 0;
|
||||
}
|
||||
std::fill(bits.begin(), bits.end(), 0);
|
||||
}
|
||||
|
||||
/// Clear all bits (alias for bitset::clear).
|
||||
|
||||
Reference in New Issue
Block a user