mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:17:35 +00:00
AK: Annotate HashMap functions with [[nodiscard]]
This commit is contained in:
parent
eaa9ec9b5d
commit
a8671ec166
1 changed files with 3 additions and 3 deletions
|
@ -64,12 +64,12 @@ public:
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool is_empty() const
|
[[nodiscard]] bool is_empty() const
|
||||||
{
|
{
|
||||||
return m_table.is_empty();
|
return m_table.is_empty();
|
||||||
}
|
}
|
||||||
size_t size() const { return m_table.size(); }
|
[[nodiscard]] size_t size() const { return m_table.size(); }
|
||||||
size_t capacity() const { return m_table.capacity(); }
|
[[nodiscard]] size_t capacity() const { return m_table.capacity(); }
|
||||||
void clear() { m_table.clear(); }
|
void clear() { m_table.clear(); }
|
||||||
|
|
||||||
HashSetResult set(const K& key, const V& value) { return m_table.set({ key, value }); }
|
HashSetResult set(const K& key, const V& value) { return m_table.set({ key, value }); }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue