refactor: tornar std::ranges::{any,all,find}_of a bucles for explícits
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
|
||||
#include "core/input/define_inputs.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
#include <format>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -154,9 +153,12 @@ namespace System {
|
||||
}
|
||||
|
||||
auto DefineInputs::isInUse(int code) const -> bool {
|
||||
return std::ranges::any_of(sequence_, [code](const Step& s) {
|
||||
return s.captured == code;
|
||||
});
|
||||
for (const auto& s : sequence_) {
|
||||
if (s.captured == code) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void DefineInputs::captureAndAdvance(int code) {
|
||||
|
||||
Reference in New Issue
Block a user