“cpp/error/system error/what”的版本间的差异

来自cppreference.com
< cpp‎ | error‎ | system error
(Use {{lc}}. Update links. Various fixes.)
(merge noexcept)
 
(未显示1个用户的1个中间版本)
第1行: 第1行:
{{tr_note}}
 
 
{{cpp/error/system_error/title|what}}
 
{{cpp/error/system_error/title|what}}
 
{{cpp/error/system_error/navbar}}
 
{{cpp/error/system_error/navbar}}
{{ddcl | notes={{mark since c++11}} |
+
{{ddcl | sincec++11 |
virtual const char* what() const;
+
virtual const char* what() const ;
 
}}
 
}}
  
{{tr| 返回 解释字符串.|Returns the explanatory string.}}
+
返回解释 字符串
  
 
===参数===
 
===参数===
{{tr| (无)|(none)}}
+
(无)
  
 
===返回值===
 
===返回值===
{{tr| 指向 一个空结束的字符串 解释信息. |Pointer to a null-terminated string with explanatory information. }}
+
指向 解释 信息
  
=== 例外===
+
===参阅===
{{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}}
  
[[de:cpp/error/system error/what]]
+
deenesfritjaptru
[[en:cpp/error/system error/what]]
+
[[es:cpp/error/system error/what]]
+
[[fr:cpp/error/system error/what]]
+
[[it:cpp/error/system error/what]]
+
[[ja:cpp/error/system error/what]]
+
[[pt:cpp/error/system error/what]]
+
[[ru:cpp/error/system error/what]]
+

2017年9月29日 (五) 00:38的最后版本

 
 
 
 
 
virtual const char* what() const noexcept;
(C++11 起)

返回解释性字符串。

[编辑] 参数

(无)

[编辑] 返回值

指向拥有解释性信息的空终止字符串的指针。

[编辑] 参阅

返回错误码
(公开成员函数) [编辑]