mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
libutil: Sprinkle some noexcept on LRUCache::{size,clear}
The underlying containers are already noexcept to destroy and dtors are noexcept in general.
This commit is contained in:
parent
2f2e04142e
commit
d955b401a7
1 changed files with 2 additions and 2 deletions
|
@ -105,12 +105,12 @@ public:
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t size() const
|
size_t size() const noexcept
|
||||||
{
|
{
|
||||||
return data.size();
|
return data.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
void clear()
|
void clear() noexcept
|
||||||
{
|
{
|
||||||
data.clear();
|
data.clear();
|
||||||
lru.clear();
|
lru.clear();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue