阅读背景:

可以在尾随返回类型语法中直接使用参数值(不是其类型而是值本身)

来源:互联网 

Consider the minimal example:

考虑最小的例子:

template <int>
struct bar { };

int main() 
{
    [](auto i) -> bar<i> { return {}; };
}
temp



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: