summaryrefslogtreecommitdiff
path: root/AK/IntrusiveListRelaxedConst.h
AgeCommit message (Collapse)Author
2021-09-10AK+Everywhere: Reduce the number of template parameters of IntrusiveListAli Mohammad Pur
This makes the user-facing type only take the node member pointer, and lets the compiler figure out the other needed types from that.
2021-08-08AK: Add `typename` keyword for dependent typesDaniel Bertalan
This was made optional in C++20 in most cases, but Clang doesn't support omitting it yet. See P0634R3.
2021-08-07AK: Introduce IntrusiveListRelaxedConstJean-Baptiste Boric
This container is the same as IntrusiveList, except that it allows modifications to the elements even if the reference to the IntrusiveList itself is const, by returning mutable iterators. This represents a use-case where we want to allow modifications to the elements while keeping the list itself immutable. This behavior is explicitely opt-in by using IntrusiveListRelaxedConst instead of IntrusiveList. It will be useful later on when we model shared/exclusive locks with the help of const and mutable references.