mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:17:35 +00:00
AK: Add nodiscard
attribute to BinaryHeap functions
This commit is contained in:
parent
56cabf80de
commit
ccbf240962
1 changed files with 2 additions and 2 deletions
|
@ -52,13 +52,13 @@ public:
|
|||
return m_elements[index].value;
|
||||
}
|
||||
|
||||
const V& peek_min() const
|
||||
[[nodiscard]] const V& peek_min() const
|
||||
{
|
||||
VERIFY(!is_empty());
|
||||
return m_elements[0].value;
|
||||
}
|
||||
|
||||
const K& peek_min_key() const
|
||||
[[nodiscard]] const K& peek_min_key() const
|
||||
{
|
||||
VERIFY(!is_empty());
|
||||
return m_elements[0].key;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue