我将如何将代码块传递给 C++ 中的函数。在 C# 中我可以做这样的事情:
void Example(Action action) { action(); } Example(() => { //do something });
非常感谢所有帮助和提示。
c++
c++ ×1