emplace... why not?

This commit is contained in:
2025-12-13 19:49:31 -10:00
parent 129447d88f
commit 2ce1b66855
+1 -1
View File
@@ -12,7 +12,7 @@ int main() {
std::string line;
std::vector<std::string> v;
while (std::getline(file, line)) {
v.push_back(line);
v.emplace_back(line);
}
std::cout << "Part 1: " << part_1(v) << std::endl;
std::cout << "Part 2: " << part_2(v) << std::endl;