1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:47:44 +00:00

Kernel: Add for_each_vmobject_of_type<T>

This makes iterating over a specific type of VMObjects a bit nicer.
This commit is contained in:
Andreas Kling 2020-05-08 22:10:47 +02:00
parent 239fd33405
commit 55f61c0004
8 changed files with 57 additions and 16 deletions

View file

@ -64,4 +64,10 @@ private:
bool m_volatile { false };
};
template<>
inline bool is<PurgeableVMObject>(const VMObject& vmobject)
{
return vmobject.is_purgeable();
}
}