cppreference.com
搜索
🔍
创建账号
登录
命名空间
模板
讨论
语言变体
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
臺灣正體
查看
阅读
查看源代码
查看历史
操作
Template
:
cpp/language/attributes/dsc nodiscard
来自cppreference.com
|- class="t-dsc"
|
[[
nodiscard
]]
[[
nodiscard
("
原因
")]]
(C++17)
(C++20)
| 鼓励编译器在返回值被丢弃时发出警告
(属性指示符)
|-