inspired by range-v3 and TartanLlama - ranges
std::ifstream input{ "input.txt" };
for (const auto& line: input | utils::views::getlines) {
std::cout << line << '\n';
}| Name | Name | Last commit date | ||
|---|---|---|---|---|
std::ifstream input{ "input.txt" };
for (const auto& line: input | utils::views::getlines) {
std::cout << line << '\n';
}