================
@@ -103,6 +103,14 @@ template <typename T, size_t PageSize = 1024 / sizeof(T)>
class PagedVector {
/// Return the size of the vector.
[[nodiscard]] size_t size() const { return Size; }
+ /// Return true if the element at `Index` belongs to a page which was already
+ /// materialized, i.e., had at least one element accessed.
+ [[nodiscard]] bool isMaterialized(size_t Index) const {
----------------
vgvassilev wrote:
We should add a test case for this function.
https://github.com/llvm/llvm-project/pull/67960
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits