std::ctype<char>::is

Header: <locale>

  1. Checks if the character c is classified by the mask m according to the classification table returned by the member function table(). Effectively calculates table()[(unsigned char)c] & m.

# Declarations

bool is( mask m, char c ) const;
const char* is( const char* low, const char* high, mask* vec ) const;

# Parameters

# Notes

Unlike the primary template std::ctype, this specialization does not perform a virtual function call when classifying characters. To customize the behavior, a derived class may provide a non-default classification table to the base class constructor.

# Example

This section is incompleteReason: no example

# Defect reports

DRApplied toBehavior as publishedCorrect behavior
LWG 28C++98overload (2) copied the values from vec into table(),which is the reverse of the intended behaviorcorrected

# See also