Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
An integer type that provides bitmask values to denote standard facet families.
typedef int category;
static const int collate = LC_COLLATE;
static const int ctype = LC_CTYPE;
static const int monetary = LC_MONETARY;
static const int numeric = LC_NUMERIC;
static const int time = LC_TIME;
static const int messages = LC_MESSAGES;
static const int all = LC_ALL;
static const int none = 0;
Remarks
The type is a synonym for an int type that can represent a group of distinct elements of a bitmask type local to class locale or can be used to represent any of the corresponding C locale categories. The elements are:
collate, corresponding to the C category LC_COLLATE
ctype, corresponding to the C category LC_CTYPE
monetary, corresponding to the C category LC_MONETARY
numeric, corresponding to the C category LC_NUMERIC
time, corresponding to the C category LC_TIME
messages, corresponding to the Posix category LC_MESSAGES
In addition, two useful values are:
none, corresponding to none of the C categories
all, corresponding to the C union of all categories LC_ALL
You can represent an arbitrary group of categories by using OR with these constants, as in monetary | time.
Requirements
Header: <locale>
Namespace: std