std::isblank

Header: <cctype>

Checks if the given character is a blank character as classified by the currently installed C locale. Blank characters are whitespace characters used to separate words within a sentence. In the default C locale, only space (0x20) and horizontal tab (0x09) are classified as blank characters.

# Declarations

int isblank( int ch );

(since C++11)

# Parameters

# Return value

Non-zero value if the character is a blank character, zero otherwise.

# Notes

Like all other functions from , the behavior of std::isblank is undefined if the argument’s value is neither representable as unsigned char nor equal to EOF. To use these functions safely with plain chars (or signed chars), the argument should first be converted to unsigned char:

Similarly, they should not be directly used with standard algorithms when the iterator’s value type is char or signed char. Instead, convert the value to unsigned char first:

# See also