C++ Stdexcept 庫 runtime_error



描述

這是一個執行時錯誤異常,此類定義了作為異常丟擲的物件的型別,以報告只能在執行時檢測到的錯誤。

宣告

以下是 std::runtime_error 的宣告。

class runtime_error;

C++11

class runtime_error;

引數

返回值

成員

建構函式 - 這裡作為 what_arg 傳遞的字串與成員 what 返回的值具有相同的內容。

stdexcept.htm
廣告

© . All rights reserved.