unexpected
(CRT)
Calls terminate
or the function you specify by using set_unexpected
.
Syntax
void unexpected( void );
Remarks
The unexpected
routine isn't used with the current implementation of C++ exception handling. unexpected
calls terminate
by default. You can change this default behavior by writing a custom termination function. Call set_unexpected
with the name of your function as its argument. unexpected
calls the last function passed to set_unexpected
.
Requirements
Routine | Required header |
---|---|
unexpected |
<eh.h> |
For more compatibility information, see Compatibility.
See also
Exception handling routines
abort
_set_se_translator
set_terminate
set_unexpected
terminate
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho