1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:37:35 +00:00

LibCore: Add support for range-based for loops on LineIterators

This commit is contained in:
Sahan Fernando 2021-12-07 01:16:01 +11:00 committed by Ali Mohammad Pur
parent 6d948c1a92
commit 2c43eaa50c
3 changed files with 54 additions and 17 deletions

View file

@ -319,4 +319,8 @@ LineIterator& LineIterator::operator++()
m_buffer = m_device->read_line();
return *this;
}
LineIterator LineRange::begin() { return m_device.line_begin(); }
LineIterator LineRange::end() { return m_device.line_end(); }
}