There's a pattern that keeps coming up and I don't know if it has a name, but I ...
Stefan Reinalter @molecularmusing@mastodon.gamedev.place
There's a pattern that keeps coming up and I don't know if it has a name, but I wanted to share:
Nothing fancy really, just a way of shoving arbitrary funcs (including capturing lambdas) into ordinary func pointers without needing any inheritance or allocation.
E.g. ThreadPool: