This may be a stupid question but I have a code with the following line:
Solver *S, *STP = S =
UseDummySolver ? createDummySolver() : new STPSolver(true);
I know the ternary operator but it’s the equals signs that confuse me a bit. Can anyone give me some explanation ? Thanks.
Written out, it’s
It’s very ugly though, I’d not recommend doing that in your code.
The recommended way would be to write it as follows (use initialization, rather than assignment):