1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-11-23 21:17:42 +00:00

Adopt std::ranges::copy where it is trivial to do so.

This commit is contained in:
Thomas Harte
2025-04-25 22:17:07 -04:00
parent de78fb7a1c
commit 03eb381b3b
8 changed files with 28 additions and 19 deletions

View File

@@ -8,11 +8,12 @@
#include "CSL.hpp"
#include <algorithm>
#include <cctype>
#include <fstream>
#include <set>
#include <sstream>
#include <unordered_map>
#include <set>
#include "Machines/AmstradCPC/Keyboard.hpp"
@@ -348,8 +349,8 @@ std::vector<CSL::Instruction> CSL::parse(const std::string &file_name) {
std::vector<KeyEvent> down;
std::vector<KeyEvent> up;
while(append_typed(down, up, stream)) {
std::copy(down.begin(), down.end(), std::back_inserter(argument));
std::copy(up.begin(), up.end(), std::back_inserter(argument));
std::ranges::copy(down, std::back_inserter(argument));
std::ranges::copy(up, std::back_inserter(argument));
down.clear();
up.clear();
}