Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 898 Bytes

sig_atomic_max.md

File metadata and controls

45 lines (34 loc) · 898 Bytes

SIG_ATOMIC_MAX

  • cstdint[meta header]
  • macro[meta id-type]
  • cpp11[meta cpp]
# 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;
}
  • SIG_ATOMIC_MAX[color ff0000]

出力例

2147483647

バージョン

言語

  • C++11

処理系