mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-20 09:21:55 +00:00
LibCore: Add support for range-based for loops on LineIterators
This commit is contained in:
parent
6d948c1a92
commit
2c43eaa50c
Notes:
sideshowbarker
2024-07-17 22:54:24 +09:00
Author: https://github.com/ccapitalK
Commit: 2c43eaa50c
Pull-request: https://github.com/SerenityOS/serenity/pull/11173
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/bgianfo
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