Provide callOnSubexpressionsIf with lambdas instead of std::function
People say, std::function is slow, so provide an alternative to test that or for actual performance gains.
People say, std::function is slow, so provide an alternative to test that or for actual performance gains.