mirror of
https://github.com/NixOS/nix
synced 2025-06-24 22:11:15 +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;
|
||||
}
|
||||
|
||||
size_t size() const
|
||||
size_t size() const noexcept
|
||||
{
|
||||
return data.size();
|
||||
}
|
||||
|
||||
void clear()
|
||||
void clear() noexcept
|
||||
{
|
||||
data.clear();
|
||||
lru.clear();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue