mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 09:34:57 +09:00
AK: Add reverse iterator as member
This commit is contained in:
parent
f34fff852b
commit
0aed2f0f86
Notes:
sideshowbarker
2024-07-17 17:39:39 +09:00
Author: https://github.com/guerinoni
Commit: 0aed2f0f86
Pull-request: https://github.com/SerenityOS/serenity/pull/12741
Reviewed-by: https://github.com/IdanHo
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/linusg
3 changed files with 14 additions and 0 deletions
|
@ -704,6 +704,11 @@ public:
|
|||
Iterator end() { return Iterator::end(*this); }
|
||||
ReverseIterator rend() { return ReverseIterator::rend(*this); }
|
||||
|
||||
ALWAYS_INLINE constexpr auto in_reverse()
|
||||
{
|
||||
return ReverseWrapper::in_reverse(*this);
|
||||
}
|
||||
|
||||
template<typename TUnaryPredicate>
|
||||
ConstIterator find_if(TUnaryPredicate&& finder) const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue