diff options
| author | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-09-21 23:46:43 -0700 |
|---|---|---|
| committer | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-10-10 00:53:48 -0700 |
| commit | 249defa72b1da2a806a18cd93c7300c3aa1a844f (patch) | |
| tree | fba56469d27f9c2a1f26899d66d0d63c3cbc19ec /Source/Core/InputCommon/ControllerEmu | |
| parent | 4cc5e1972ae5643af001276758c4456ee7292f41 (diff) | |
Modernize `std::equal` with ranges
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu')
| -rw-r--r-- | Source/Core/InputCommon/ControllerEmu/ControllerEmu.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/ControllerEmu.h b/Source/Core/InputCommon/ControllerEmu/ControllerEmu.h index b77b2ce3ed..88c14cfdb1 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControllerEmu.h +++ b/Source/Core/InputCommon/ControllerEmu/ControllerEmu.h @@ -53,8 +53,7 @@ struct TwoPointCalibration } else { - return std::equal(std::begin(max.data), std::end(max.data), std::begin(zero.data), - std::not_equal_to<>()); + return std::ranges::equal(max.data, zero.data, std::ranges::not_equal_to{}); } } |
