Tag: variadic templates

在c#中模拟可变参数模板

有没有一种众所周知的方法来模拟c#中的可变参数模板function? 例如,我想编写一个带有任意参数集的lambda的方法。 这是我想要的伪代码: void MyMethod(Fun f) { } 谢谢