C++ 異常庫 - 程式碼



描述

用於獲取錯誤程式碼。

宣告

以下是 std::code 的宣告。

const error_code& code() const noexcept;

C++11

const error_code& code() const noexcept;

引數

返回值

它返回與異常關聯的 error_code 物件。

異常

不丟擲異常保證 - 沒有成員丟擲異常。

exception.htm
廣告
© . All rights reserved.