“cpp/error/system error/what”的版本间的差异
来自cppreference.com
< cpp | error | system error
小 (Use {{lc}}. Update links. Various fixes.) |
|||
第1行: | 第1行: | ||
− | |||
{{cpp/error/system_error/title|what}} | {{cpp/error/system_error/title|what}} | ||
{{cpp/error/system_error/navbar}} | {{cpp/error/system_error/navbar}} | ||
− | {{ddcl | | + | {{ddcl | sincec++11 | |
virtual const char* what() const; | virtual const char* what() const; | ||
}} | }} | ||
− | + | 返回解释 字符串 | |
===参数=== | ===参数=== | ||
− | + | (无) | |
===返回值=== | ===返回值=== | ||
− | + | 指向 解释 信息 | |
− | === | + | === === |
− | {{noexcept}} | + | {{noexcept}} |
− | === | + | ===参阅=== |
{{dsc begin}} | {{dsc begin}} | ||
{{dsc inc | cpp/error/system_error/dsc code}} | {{dsc inc | cpp/error/system_error/dsc code}} | ||
{{dsc end}} | {{dsc end}} | ||
− | + | deenesfritjaptru | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |
2017年4月30日 (日) 08:19的版本
virtual const char* what() const; |
(C++11 起) | |
返回解释性字符串。
目录 |
参数
(无)
返回值
指向拥有解释性信息的空终止字符串的指针。
异常
noexcept 规定:
noexcept
参阅
返回错误码 (公开成员函数) |