std::numeric_limits::is_specialized

static const bool is_specialized;
(C++11 前)
static constexpr bool is_specialized;
(C++11 起)

std::numeric_limits<T>::is_specialized 的值对所有存在 std::numeric_limits 特化的 Ttrue

标准特化

T std::numeric_limits<T>::is_specialized 的值
/* non-specialized */ false
bool true
char true
signed char true
unsigned char true
wchar_t true
char16_t true
char32_t true
short true
unsigned short true
int true
unsigned int true
long true
unsigned long true
long long true
unsigned long long true
float true
double true
long double true

参阅

[静态]
鉴别整数类型
(公开静态成员常量)
[静态]
鉴别 IEC 559/IEEE 754 浮点类型
(公开静态成员常量)
[静态]
鉴别准确表示的类型
(公开静态成员常量)
[静态]
鉴别表示有限值集合的类型
(公开静态成员常量)

版本历史

  • (当前 | 先前 2017年4月26日 (三) 01:26Fruderica讨论 | 贡献. . (1,734字节) (-542). . (撤销)
  • 当前 | 先前 2013年7月2日 (二) 11:48P12bot讨论 | 贡献 . . (2,276字节) (-335). . (Use {{lc}}. Update links. Various fixes.) (撤销)
  • 当前 | 先前 2012年11月2日 (五) 14:56P12bot讨论 | 贡献 . . (2,611字节) (+377). . (r2.7.3) (机器人添加:de, en, es, fr, it, ja, pt, ru) (撤销)
  • 当前 | 先前 2012年10月27日 (六) 12:12P12讨论 | 贡献 . . (2,234字节) (0). . (1个修订: Translate from the English version) (撤销)
  • 当前 | 先前 2012年10月26日 (五) 06:00TranslationBot讨论 | 贡献. . (2,234字节) (-23). . (Translated from the English version using Google Translate) (撤销)
  • 当前 | 先前 2012年10月26日 (五) 03:54P12讨论 | 贡献 . . (2,257字节) (0). . (1个修订: Translate from the English version) (撤销)
  • 当前 | 先前) 2012年10月25日 (四) 12:00TranslationBot讨论 | 贡献. . (2,257字节) (+2,257). . (Translated from the English version using Google Translate)