GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • cpprefjp - C++日本語リファレンス
  • GitHub Project

This view

  • Original page
  • New address

GeezerVison is showing cpprefjp.github.io — INFINITY - cpprefjp C++日本語リファレンス

  1. リファレンス
  2. cmath
  3. INFINITY

最終更新日時: 2026年06月15日 14時22分22秒 (JST)
Akira Takahashi が更新

履歴 編集

macro
<cmath>

INFINITY(C++11)

#define INFINITY constant-expression

概要

float の無限大がサポートされる場合、float 型の正の無限大である。

無限大がサポートされない場合、オーバーフローする float 型の式である。

備考

  • C++26では、C23を参照するようになったことで、このマクロは<cfloat>でも定義されるようになった

バージョン

言語

  • C++11

参照

  • P3348R4 C++26 should refer to C23 not C17
    • C++26がC23を参照するようになり、このマクロが<cfloat>でも定義されるようになった
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.