We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
当返回类型是auto的时候也是这样(标注:如果是这样,上面的例子中为什么要用std::decay<>呢?)
解答:因为此处的auto仅仅是占位符,实际的返回类型由尾置返回类型明确指定了。
The text was updated successfully, but these errors were encountered:
当返回类型是auto的时候也是这样(标注:如果是这样,上面的例子中为什么要用std::decay<>呢?) 解答:因为此处的auto仅仅是占位符,实际的返回类型由尾置返回类型明确指定了。
感谢,很高兴还有这么仔细读书的人。至少我已经一年多没能仔细读书了。
Sorry, something went wrong.
但有个问题, 模板的两个类型是值传递声明, 实参为引用的化不是已经退化成不带引用的原始类型了嘛, 这样也不需要使用decay啊
No branches or pull requests
当返回类型是auto的时候也是这样(标注:如果是这样,上面的例子中为什么要用std::decay<>呢?)
解答:因为此处的auto仅仅是占位符,实际的返回类型由尾置返回类型明确指定了。
The text was updated successfully, but these errors were encountered: