[libc-commits] [libc] [libc] Add front() and erase() to FixedVector (PR #213866)
Jeff Bailey via libc-commits
libc-commits at lists.llvm.org
Wed Aug 5 01:12:35 PDT 2026
================
----------------
kaladron wrote:
Sorry for this: I hadn't read this function before and was curious. I was puzzling with this one, and I think this more accurately covers what it wants and avoids an out-of-bound pointer.
```suggestion
LIBC_ASSERT(end >= begin && static_cast<size_t>(end - begin) <= CAPACITY);
```
https://github.com/llvm/llvm-project/pull/213866
More information about the libc-commits
mailing list