| 474 | */ |
| 475 | template <typename OutputIt> |
| 476 | ReadToResult<OutputIt> ReadLineTo(OutputIt output, std::size_t limit = NoLimit) |
| 477 | { |
| 478 | const auto result = this->ReadLine( |
| 479 | [&output](const char* data, std::size_t size) |
| 480 | { |
| 481 | for (std::size_t i{}; i < size; ++i) |
| 482 | { |
| 483 | *output++ = data[i]; |
| 484 | } |
| 485 | }, |
| 486 | limit); |
| 487 | |
| 488 | return ReadToResult<OutputIt>{ result, output }; |
| 489 | } |
| 490 | |
| 491 | /** |
| 492 | * @brief Read an entire line from the input stream |