aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorNick Desaulniers <nickdesaulniers@users.noreply.github.com>2024-03-19 09:25:57 -0700
committerGitHub <noreply@github.com>2024-03-19 09:25:57 -0700
commitc63a291c64852a086cb447c7078e5312aac1a05c (patch)
treecdd968da56666c42d89a2c72fe10f019563da48c /llvm/lib/CodeGen
parent252e2551eab9b59f7dcbf8bb79a1432884d546e4 (diff)
downloadllvm-c63a291c64852a086cb447c7078e5312aac1a05c.zip
llvm-c63a291c64852a086cb447c7078e5312aac1a05c.tar.gz
llvm-c63a291c64852a086cb447c7078e5312aac1a05c.tar.bz2
[libc][cpp] reverse_iterator support (#85702)
Towards the goal of implementing __cxa_finalize (#85651) I'd like to be able to reverse iterate over cpp::arrays such as the one used in FixedVector. Implement the enough iterator support to be able to iterate a cpp::array in reverse, and add tests. Of note, reverse iterator's begin() refers to forward iterator's end() (and vice versa). When dereferenced (operator*), the reverse iterator returns a copy that's been pre-decremented (the underlying forward iterator is advanced).
Diffstat (limited to 'llvm/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions