================ @@ -1625,6 +1625,40 @@ SmallVector has grown a few other minor advantages over std::vector, causing and is no longer "private to the implementation". A name like ``SmallVectorHeader`` might be more appropriate. +.. _dss_pagedvector: + +llvm/ADT/PagedVector.h +^^^^^^^^^^^^^^^^^^^^^^ + +``PagedVector<Type, PageSize>`` is a random access container that allocates +``PageSize`` elements of type ``Type`` when the first element of a page is +accessed via the ``operator[]``. This is useful for cases where the number of +elements is known in advance; their actual initialization is expensive; and +they are sparsely used. This utility uses page-granular lazily initialization ---------------- zygoloid wrote:
```suggestion they are sparsely used. This utility uses page-granular lazy initialization ``` https://github.com/llvm/llvm-project/pull/66430 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits