Why the `std::function` object(i.e `fn`) still works well after the object `ins` is out of scope?

前端 未结 0 576
星月不相逢
星月不相逢 2020-12-13 16:41

Why the std::function object(i.e fn) still works well after the object ins is out of scope? Here is the code snappit(https://godbolt.o

相关标签:
回答
  • 消灭零回复
提交回复
热议问题