cpp/locale/isprint

Checks if the given character classified as a printable character (including space) by the given locale's std facet.

Return value
Returns if the character is classified as printable,  otherwise.