y3c-stl 0.3.3
Friendly C++ STL wrapper with automatic stacktrace
|
example output:
y3c-stl terminated: undefined behavior detected (ub_invalid_iter)at y3c::vector<int>::iterator::operator++(): this iterator is invalidated.Stack trace (most recent call first):#0 0x000055bcadd407a6 in main at /home/runner/work/y3c-stl/y3c-stl/build/../examples/vector-iter-erase.cc:5:693: int main() {4: y3c::vector<int> a = {1, 2, 3, 4, 5};6: if (unwrap(*it) == 3) {7: a.erase(it);contiguous_iterator & operator++()Definition iterator.h:130iterator erase(const_iterator pos, internal::skip_trace_tag={})要素の削除Definition vector.h:293Definition array.h:8