我对快速的语言很新
我想在c ++中声明一个内联函数,所以我的有趣声明就像
func MyFunction(param: Int) -> Int {
...
...
...
}
Run Code Online (Sandbox Code Playgroud)
我想要做类似的事情
inline func MyFunction(param: Int) -> Int {
...
...
...
}
Run Code Online (Sandbox Code Playgroud)
我试图在网上搜索,但我没有找到任何相关的可能没有内联关键字,但也许还有另一种内联函数的方法
非常感谢 :)