mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:27:34 +00:00
AK: Add reverse iterator as member
This commit is contained in:
parent
f34fff852b
commit
0aed2f0f86
3 changed files with 14 additions and 0 deletions
|
@ -41,6 +41,11 @@ public:
|
|||
ALWAYS_INLINE constexpr Iterator end() { return Iterator::end(*this); }
|
||||
ALWAYS_INLINE constexpr ReverseIterator rend() { return ReverseIterator::rend(*this); }
|
||||
|
||||
ALWAYS_INLINE constexpr auto in_reverse()
|
||||
{
|
||||
return ReverseWrapper::in_reverse(*this);
|
||||
}
|
||||
|
||||
ALWAYS_INLINE PtrType& ptr_at(size_t index) { return Base::at(index); }
|
||||
ALWAYS_INLINE const PtrType& ptr_at(size_t index) const { return Base::at(index); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue