我在标准文档中找不到答案.C++语言标准是否要求sizeof(bool)始终为1(1个字节),还是要定义此大小的实现?
sizeof(bool)
c++ boolean sizeof implementation-defined-behavior
boolean ×1
c++ ×1
implementation-defined-behavior ×1
sizeof ×1