# HG changeset patch # User Alain Mazy # Date 1562141885 -7200 # Node ID 8c663bbe536310bba27bda564f91a9c8448e2ffd # Parent c08bb6ac3b7fb70944956c8b5722f592b2303ca7 LeastRecentlyUsedIndex::GetAllKeys diff -r c08bb6ac3b7f -r 8c663bbe5363 Core/Cache/LeastRecentlyUsedIndex.h --- a/Core/Cache/LeastRecentlyUsedIndex.h Wed Jun 19 12:31:59 2019 +0200 +++ b/Core/Cache/LeastRecentlyUsedIndex.h Wed Jul 03 10:18:05 2019 +0200 @@ -35,6 +35,7 @@ #include #include +#include #include #include @@ -151,6 +152,17 @@ const T& GetOldest() const; const Payload& GetOldestPayload() const; + + void GetAllKeys(std::vector& keys) const + { + keys.clear(); + keys.reserve(GetSize()); + for (typename Index::const_iterator it = index_.begin(); it != index_.end(); it++) + { + keys.push_back(it->first); + } + } + };