Share via


ctype::do_scan_not

A virtual function called to locate the first character in a range that does not match a specified mask.

virtual const CharType *do_scan_not(
    mask maskVal, 
    const CharType* first, 
    const CharType* last,
) const;

Parameters

  • maskVal
    The mask value not to be matched by a character.

  • first
    A pointer to the first character in the range to be scanned.

  • last
    A pointer to the character immediately following the last character in the range to be scanned.

Return Value

A pointer to the first character in a range that doesn't match a specified mask. If no such value exists, the function returns last.

Remarks

The protected member function returns the smallest pointer ptr in the range [first, last) for which do_is(maskVal, *ptr) is false.

Example

See the example for scan_not, which calls do_scan_not.

Requirements

Header: <locale>

Namespace: std

See Also

Reference

ctype Class