cpp/locale/ctype char/scan is

Locates the first character in the character array that satisfies the classification mask, that is, the first character  such that  would return.

If, then an implementation-defined value is substituted instead of , possibly different for different values of.

Return value
Pointer to the first character in that satisfies the mask, or  if no such character was found.