<cwctype>

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

#if <TRADITIONAL C HEADERS>
   #include <wctype.h>
namespace std {
   using ::iswalnum; 
   using ::iswalpha; 
   using ::iswcntrl;
   using ::iswctype; 
   using ::iswdigit; 
   using ::iswgraph;
   using ::iswlower; 
   using ::iswprint; 
   using ::iswpunct;
   using ::iswspace; 
   using ::iswupper; 
   using ::iswxdigit;
   using ::towctrans; 
   using ::towlower; 
   using ::towupper;
   using ::wctrans; 
   using ::wctrans_t; 
   using ::wctype;
   using ::wctype_t;
   using ::wint_t; 
}

#undef iswalnum
#undef iswalpha
#undef iswcntrl
#undef iswctype
#undef iswdigit
#undef iswgraph
#undef iswlower
#undef iswprint
#undef iswpunct
#undef iswspace
#undef iswupper
#undef iswxdigit
#undef towctrans
#undef towlower
#undef towupper
#undef wctrans
#undef wctype

#endif

备注

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

请参见

参考

标准C++库概述

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

其他资源

标头文件