<cctype>

定义在标准 C 库头 ctype.h传统上定义的宏。

#if <TRADITIONAL C HEADERS>
   #include <ctype.h>
namespace std {
   using ::isalnum; 
   using ::isalpha; 
   using ::iscntrl;
   using ::isdigit; 
   using ::isgraph; 
   using ::islower;
   using ::isprint; 
   using ::ispunct; 
   using ::isspace;
   using ::isupper; 
   using ::isxdigit; 
   using ::tolower;
   using ::toupper;
}

#undef isalnum
#undef isalpha
#undef isblank
#undef iscntrl
#undef isdigit
#undef isgraph
#undef islower
#undef isprint
#undef ispunct
#undef isspace
#undef isupper
#undef isxdigit
#undef tolower
#undef toupper

#endif

备注

将此头还确保声明的名称与在标准 C 库头的外部链接在 std 命名空间声明。此实现中,名称在全局命名空间也可能不会同时声明,根据特定转换环境。

请参见

参考

标准C++库概述

线程安全性对标准C++库中

其他资源

标头文件