Namespaces
Variants

Standard library header <stdfloat> (C++23)

From cppreference.net
Standard library headers

このヘッダは type support ライブラリの一部であり、 fixed width floating-point types を提供します。

目次

それぞれ正確に16、32、64、128ビット幅の2進浮動小数点型
(typedef)
(C++23) (optional)
正確に16ビットのbrain浮動小数点型
(typedef)

注記

固定幅浮動小数点型は、拡張浮動小数点型へのエイリアスでなければならず( float / double / long double ではない)、したがって標準浮動小数点型の直接的な代替にはなりません。

概要

namespace std {
  #if defined(__STDCPP_FLOAT16_T__)
    using float16_t  = /* 実装定義 */;
  #endif
  #if defined(__STDCPP_FLOAT32_T__)
    using float32_t  = /* 実装定義 */;
  #endif
  #if defined(__STDCPP_FLOAT64_T__)
    using float64_t  = /* 実装定義 */;
  #endif
  #if defined(__STDCPP_FLOAT128_T__)
    using float128_t = /* 実装定義 */;
  #endif
  #if defined(__STDCPP_BFLOAT16_T__)
    using bfloat16_t = /* 実装定義 */;
  #endif
}

参考文献

  • C++23標準 (ISO/IEC 14882:2024):
  • 17.5 ヘッダー <stdfloat> 概要 [stdfloat.syn]