| 257 | } |
| 258 | |
| 259 | void Promote(TItem* item) { |
| 260 | size_t counter = ++item->Counter; |
| 261 | typename TListType::TIterator it = item; |
| 262 | while (it != List.End() && counter >= it->Counter) { |
| 263 | ++it; |
| 264 | } |
| 265 | item->LinkBefore(&*it); |
| 266 | } |
| 267 | |
| 268 | [[nodiscard]] size_t GetSize() const { |
| 269 | return ItemsAmount; |
nothing calls this directly
no test coverage detected