- cwctype[meta header]
- std[meta namespace]
- function[meta id-type]
- cpp11[meta cpp]
namespace std {
int iswblank(wint_t wc);
}- wint_t[link /reference/cwchar/wint_t.md]
ワイド文字wcが空白類文字 (スペースと水平タブ)であるかを判定する。判定は、ロケールのLC_CTYPEカテゴリの影響を受ける。
wcが空白類文字 (スペースと水平タブ)であると判定されれば非ゼロの値を、そうでなければ0を返す。
#include <cwctype>
#include <iostream>
int main()
{
std::cout << std::boolalpha;
std::cout << (std::iswblank(L' ') != 0) << std::endl;
std::cout << (std::iswblank(L'a') != 0) << std::endl;
}- std::iswblank[color ff0000]
true
false
- C++11