c++ How to design/declare “callbacks” that support a comparison operation – need to find and remove callbacks from list
I believe this is not a duplicate question. Other similar questions ask something like “how can I compare std::function objects for equivalence/equality?”. The answer seems to be simply “one cannot”. Instead, I am asking “how can I represent a function that includes captures and can be compared for equality?”.