I have a container of a class type which I need to iterate over in several different functions. When the code initially runs, the container always has one object in it, but later on it may be empty.
It's a couple hundred lines of code, so here's just some code for context and the first function that ends with a segfault. That being said, I'm starting to wonder if the problem might be in a totally different location than the debugger claims.