1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 13:11:39 +01:00
Nathan James b80fbad013 [ADT] Add SmallVector::pop_back_n
Adds a method called pop_back_n to SmallVector.
This is more readable and less error prone than the alternatives of using
```lang=c++
Vector.resize(Vector.size() - N);
Vector.erase(Vector.end() - N, Vector.end());
for (unsigned I = 0;I<N;++I) Vector.pop_back();
```

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D90576
2020-11-03 14:57:10 +00:00
..
2020-02-12 08:25:14 -08:00
2020-02-12 08:26:10 -08:00
2020-07-16 19:01:25 +02:00
2020-02-06 12:33:44 +01:00
2020-10-29 13:19:51 +01:00
2020-09-01 16:13:40 -07:00