Regarding the problems with resize, I thought about making some assertions that hold for single thread use, like f.e. adding a value increses the size by one (dumb example).
Since otherwise there are very few assertions that can be made in multi threted code.
How do I best realize assertions that depend on some flag?
Regarding the problems with resize, I thought about making some assertions that hold for single thread use, like f.e. adding a value increses the size by one (dumb example).
Since otherwise there are very few assertions that can be made in multi threted code.
How do I best realize assertions that depend on some flag?