• Class / Function / Type

      std::
    • Header file

      <>
    • Other / All

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

    履歴 編集

    macro
    <cstdint>

    WCHAR_MIN

    # define WCHAR_MIN implementation-defined
    

    概要

    wchar_t の最小値。

    wchar_tが符号付き整数型として定義される場合、このマクロの値は-128以下となる。そうでない場合、このマクロの値は0となる。

    #include <iostream>
    #include <cstdint>
    
    int main()
    {
      wchar_t min_value = WCHAR_MIN;
      std::cout << static_cast<long long>(min_value) << std::endl;
    }
    

    出力例

    -2147483648
    

    バージョン

    言語

    • C++11

    処理系