Reference
C Library
IOstream Library
Strings library
STL Containers
STL Algorithms
Miscellaneous
Miscellaneous
complex
exception
functional
iterator
limits
locale
memory
new
numeric
stdexcept
typeinfo
utility
valarray
locale
has_facet
isalnum
isalpha
iscntrl
isdigit
isgraph
islower
isprint
ispunct
isspace
isupper
isxdigit
locale
tolower
toupper
use_facet
standard facets:
codecvt
codecvt_base
codecvt_byname
collate
collate_byname
ctype
ctype_base
ctype_byname
messages
messages_base
messages_byname
moneypunct
moneypunct_byname
money_base
money_get
money_put
numpunct
numpunct_byname
num_get
num_put
time_base
time_get
time_get_byname
time_put
time_put_byname
ctype
ctype::ctype
public member functions:
ctype::is
ctype::narrow
ctype::scan_is
ctype::scan_not
ctype::tolower
ctype::toupper
ctype::widen
public member types:
ctype::char_type
ctype::mask
protected members:
ctype::do_is
ctype::do_narrow
ctype::do_scan_is
ctype::do_scan_not
ctype::do_tolower
ctype::do_toupper
ctype::do_widen
ctype::~ctype


ctype::ctype

public member function
explicit ctype (size_t refs=0);

ctype constructor

Constructs a ctype facet object.

Calls the constructor of its base class locale::facet.

Parameters

refs
0 (zero) if the object has to be automatically destroyed when the last locale containing that facet is destroyed, or 1 (one) if it will be explicitly deleted.
size_t is an unsigned integral type.

Specialization for ctype<char>

The ctype class is specialized for the char type. This specialization has a different constructor with additional parameters:
 
explicit ctype ( const mask* tab = 0, bool del = false, size_t refs = 0 );


The additional parameters in this specialization represent:
tab
Pointer to an array containing a table with the classification of each of the characters in the character set (as if returned by the array version of ctype::is). Or zero, if the classic table (a predefined table) is to be used.
ctype::mask is a bitmask member type.
del
If true, the destructor will automatically delete the table passed as first argument, so that the program needs not to care about the facet's lifetime.