Use C++’s list template for keeping track of effects.