typedef int category;
static const category none, collate, ctype, monetary,
numeric, time, messages, all;
The type is a synonym for int, so that it can represent any of the C locale categories. It can also represent a group of
constants local to class locale
:
LC_COLLATE
LC_CTYPE
LC_MONETARY
LC_NUMERIC
LC_TIME
LC_MESSAGE
LC_ALL
You can represent an arbitrary group of categories by ORing these constants, as in monetary | time
.