Spec-Zone.ru › C++

Стандартный заголовок библиотеки <stdfloat> (C++23)

Этот заголовок является частью библиотеки поддержки типов, предоставляя типы с фиксированной шириной с плавающей запятой.

Типы

float16_tfloat32_tfloat64_tfloat128_t
(C++23)(optional)
тип двоичного числа с плавающей запятой с шириной ровно 16, 32, 64 и 128 бит соответственно
(typedef)
bfloat16_t
(C++23)(optional)
тип числа с плавающей запятой типа brain с шириной ровно 16 бит
(typedef)

Синопсис

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

Ссылки

  • Стандарт C++23 (ISO/IEC 14882:2023):
    • 17.5 Заголовок <stdfloat> синопсис [stdfloat.syn]

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/header/stdfloat

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API