函式
<system_error>

std::generic_category

const error_category& generic_category() noexcept;
返回 generic category
返回一個指向具有以下特徵的 `error_category` 型別靜態物件的引用。
  • 其 `name` 成員函式返回指向字元序列 `"generic"` 的指標。
  • 其 `equivalent` 和 `default_error_condition` 成員函式表現如基類 `error_category`.

描述與 `` 中定義的錯誤相對應的 `error_condition` 物件與此類別相關聯。這種對應關係的構成取決於作業系統和特定的庫實現。

引數



返回值

指向 *generic* `error_category` 物件的引用。

另見