std::ctype<char>::is
Min standard notice:
Header: <locale>
- 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
c: character to classifym: mask to use for classifying a single characterlow: pointer to the first character in an array of characters to classifyhigh: one past the end pointer for the array of characters to classifyvec: pointer to the first element of the array of masks to fill
# 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
| DR | Applied to | Behavior as published | Correct behavior |
|---|---|---|---|
| LWG 28 | C++98 | overload (2) copied the values from vec into table(),which is the reverse of the intended behavior | corrected |