Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 721 Bytes

size_max.md

File metadata and controls

44 lines (33 loc) · 721 Bytes

SIZE_MAX

  • cstdint[meta header]
  • macro[meta id-type]
  • cpp11[meta cpp]
# define SIZE_MAX implementation-defined

概要

size_t の最大値。

このマクロの値は65535以上となる。

#include <iostream>
#include <cstdint>

int main()
{
  std::size_t max_value = SIZE_MAX;
  std::cout << static_cast<unsigned long long>(max_value) << std::endl;
}
  • SIZE_MAX[color ff0000]

出力

18446744073709551615

バージョン

言語

  • C++11

処理系