mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
AK: Annotate IntrusiveList functions as [[nodiscard]]
This commit is contained in:
parent
0593fa4dcb
commit
28e40e22c0
Notes:
sideshowbarker
2024-07-18 20:32:09 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/28e40e22c0d Pull-request: https://github.com/SerenityOS/serenity/pull/6234
1 changed files with 6 additions and 6 deletions
|
@ -47,16 +47,16 @@ public:
|
|||
~IntrusiveList();
|
||||
|
||||
void clear();
|
||||
bool is_empty() const;
|
||||
[[nodiscard]] bool is_empty() const;
|
||||
void append(T& n);
|
||||
void prepend(T& n);
|
||||
void remove(T& n);
|
||||
bool contains(const T&) const;
|
||||
T* first() const;
|
||||
T* last() const;
|
||||
[[nodiscard]] bool contains(const T&) const;
|
||||
[[nodiscard]] T* first() const;
|
||||
[[nodiscard]] T* last() const;
|
||||
|
||||
T* take_first();
|
||||
T* take_last();
|
||||
[[nodiscard]] T* take_first();
|
||||
[[nodiscard]] T* take_last();
|
||||
|
||||
class Iterator {
|
||||
public:
|
||||
|
|
Loading…
Reference in a new issue