mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:17:34 +00:00
AK: Annotate IntrusiveList functions as [[nodiscard]]
This commit is contained in:
parent
0593fa4dcb
commit
28e40e22c0
1 changed files with 6 additions and 6 deletions
|
@ -47,16 +47,16 @@ public:
|
||||||
~IntrusiveList();
|
~IntrusiveList();
|
||||||
|
|
||||||
void clear();
|
void clear();
|
||||||
bool is_empty() const;
|
[[nodiscard]] bool is_empty() const;
|
||||||
void append(T& n);
|
void append(T& n);
|
||||||
void prepend(T& n);
|
void prepend(T& n);
|
||||||
void remove(T& n);
|
void remove(T& n);
|
||||||
bool contains(const T&) const;
|
[[nodiscard]] bool contains(const T&) const;
|
||||||
T* first() const;
|
[[nodiscard]] T* first() const;
|
||||||
T* last() const;
|
[[nodiscard]] T* last() const;
|
||||||
|
|
||||||
T* take_first();
|
[[nodiscard]] T* take_first();
|
||||||
T* take_last();
|
[[nodiscard]] T* take_last();
|
||||||
|
|
||||||
class Iterator {
|
class Iterator {
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue