y3c-stl 0.3.3
Friendly C++ STL wrapper with automatic stacktrace
|
example output:
y3c-stl terminated: undefined behavior detected (ub_iter_after_end)at y3c::array<int, 5>::iterator::operator+=(): iterated over the end() of container.Stack trace (most recent call first):#0 0x0000560a0c6d7778 in main at /home/runner/work/y3c-stl/y3c-stl/build/../examples/array-iter.cc:7:115: y3c::array<int, 5> a = {1, 2, 3, 4, 5};6: y3c::array<int, 5>::iterator it = a.begin();7: it += 10;8: std::cout << *it << std::endl;9: }contiguous_iterator & operator+=(std::ptrdiff_t n)Definition iterator.h:156Definition array.h:8