据我所知,这在Rust 的泛型函数中是不可能的,因为它们只适用于数据类型而不适用于值。 #include <iostream> template<int T> int foo(int a) { return -1; } ...
確定! 回上一頁