]> git.ipfire.org Git - thirdparty/gcc.git/commit
Introduce `IndexVec`
authorKushal Pal <kushalpal109@gmail.com>
Mon, 19 Aug 2024 09:28:25 +0000 (09:28 +0000)
committerP-E-P <32375388+P-E-P@users.noreply.github.com>
Mon, 9 Sep 2024 08:33:02 +0000 (08:33 +0000)
commitfe780d77dbd7c16076817a43b5f72ce645b2bb48
tree50afe5f84ba865ae2bc8f1db210e482f5bf06331
parent4050bf70e245e0bedcfa5198e7a1e6bd14db6b0f
Introduce `IndexVec`

gcc/rust/ChangeLog:

* checks/errors/borrowck/rust-bir-place.h (struct Loan):
Introduce new class `IndexVec` inspired from IndexVec of rust.
It acts as a wrapper around `std::vector` and lets user specify
a strong type to use as index.

Signed-off-by: Kushal Pal <kushalpal109@gmail.com>
gcc/rust/checks/errors/borrowck/rust-bir-place.h