1
0
Fork 0
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:
Sergei Zimmerman 2025-05-14 22:14:46 +00:00
parent 2f2e04142e
commit d955b401a7
No known key found for this signature in database
GPG key ID: A9B0B557CA632325

View file

@ -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();