mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57:44 +00:00
Coding style fixes in AK.
This commit is contained in:
parent
b413e234e1
commit
b75ee4aacb
12 changed files with 126 additions and 126 deletions
|
@ -63,8 +63,8 @@ public:
|
|||
bool operator==(const Iterator& other) const { return m_node == other.m_node; }
|
||||
Iterator& operator++() { m_node = m_node->next; return *this; }
|
||||
T& operator*() { return m_node->value; }
|
||||
bool isEnd() const { return !m_node; }
|
||||
static Iterator universalEnd() { return Iterator(nullptr); }
|
||||
bool is_end() const { return !m_node; }
|
||||
static Iterator universal_end() { return Iterator(nullptr); }
|
||||
private:
|
||||
friend class DoublyLinkedList;
|
||||
explicit Iterator(DoublyLinkedList::Node* node) : m_node(node) { }
|
||||
|
@ -72,7 +72,7 @@ public:
|
|||
};
|
||||
|
||||
Iterator begin() { return Iterator(m_head); }
|
||||
Iterator end() { return Iterator::universalEnd(); }
|
||||
Iterator end() { return Iterator::universal_end(); }
|
||||
|
||||
class ConstIterator {
|
||||
public:
|
||||
|
@ -80,8 +80,8 @@ public:
|
|||
bool operator==(const ConstIterator& other) const { return m_node == other.m_node; }
|
||||
ConstIterator& operator++() { m_node = m_node->next; return *this; }
|
||||
const T& operator*() const { return m_node->value; }
|
||||
bool isEnd() const { return !m_node; }
|
||||
static ConstIterator universalEnd() { return ConstIterator(nullptr); }
|
||||
bool is_end() const { return !m_node; }
|
||||
static ConstIterator universal_end() { return ConstIterator(nullptr); }
|
||||
private:
|
||||
friend class DoublyLinkedList;
|
||||
explicit ConstIterator(const DoublyLinkedList::Node* node) : m_node(node) { }
|
||||
|
@ -89,7 +89,7 @@ public:
|
|||
};
|
||||
|
||||
ConstIterator begin() const { return ConstIterator(m_head); }
|
||||
ConstIterator end() const { return ConstIterator::universalEnd(); }
|
||||
ConstIterator end() const { return ConstIterator::universal_end(); }
|
||||
|
||||
ConstIterator find(const T& value) const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue