showgan@tg says to YSITD
std::function<void(int)> 之類的