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:
parent
6d948c1a92
commit
2c43eaa50c
3 changed files with 54 additions and 17 deletions
|
@ -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(); }
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue