最終更新日時(UTC):
が更新

履歴 編集

function
<system_error>

std::error_condition::message(C++11)

string message() const;

概要

エラーメッセージを取得する。

戻り値

#include <iostream>
#include <system_error>
#include <string>

int main()
{
  std::error_condition ec(static_cast<int>(std::errc::invalid_argument),
                          std::generic_category());

  std::cout << ec.message() << std::endl;
}

出力

Invalid argument

バージョン

言語

  • C++11

処理系

参照