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

履歴 編集

macro
<cstdint>

SIG_ATOMIC_MAX(C++11)

# define SIG_ATOMIC_MAX implementation-defined

概要

sig_atomic_t の最大値。

sig_atomic_tが符号付き整数型として定義される場合、このマクロの値は127以上となる。そうでない場合、このマクロの値は255以上となる。

#include <iostream>
#include <cstdint>
#include <csignal>

int main()
{
  std::sig_atomic_t max_value = SIG_ATOMIC_MAX;
  std::cout << static_cast<long long>(max_value) << std::endl;
}

出力例

2147483647

バージョン

言語

  • C++11

処理系