[libc-commits] [PATCH] D131377: [libc] Add a utility data structure named ArrayStore.

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Mon Aug 8 11:04:49 PDT 2022


michaelrj added inline comments.


================
Comment at: libc/src/__support/arraystore.h:15
+// supports vector like API but is not resizable like a vector.
+template <typename T, size_t SIZE> class ArrayStore {
+  cpp::array<T, SIZE> store;
----------------
Currently, there is no way to add or remove elements that aren't at the end of the array. I would say either add `operator[]` or rename this to `ArrayStack`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D131377/new/

https://reviews.llvm.org/D131377



More information about the libc-commits mailing list