From Jason Turner

[category.ctype.general]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp5v93p1_1/{from.md → to.md} +13 -13
tmp/tmp5v93p1_1/{from.md → to.md} RENAMED
@@ -1,26 +1,26 @@
1
- #### General <a id="category.ctype.general">[[category.ctype.general]]</a>
2
 
3
  ``` cpp
4
  namespace std {
5
  class ctype_base {
6
  public:
7
  using mask = see below;
8
 
9
  // numeric values are for exposition only.
10
- static const mask space = 1 << 0;
11
- static const mask print = 1 << 1;
12
- static const mask cntrl = 1 << 2;
13
- static const mask upper = 1 << 3;
14
- static const mask lower = 1 << 4;
15
- static const mask alpha = 1 << 5;
16
- static const mask digit = 1 << 6;
17
- static const mask punct = 1 << 7;
18
- static const mask xdigit = 1 << 8;
19
- static const mask blank = 1 << 9;
20
- static const mask alnum = alpha | digit;
21
- static const mask graph = alnum | punct;
22
  };
23
  }
24
  ```
25
 
26
  The type `mask` is a bitmask type [[bitmask.types]].
 
1
+ ##### General <a id="category.ctype.general">[[category.ctype.general]]</a>
2
 
3
  ``` cpp
4
  namespace std {
5
  class ctype_base {
6
  public:
7
  using mask = see below;
8
 
9
  // numeric values are for exposition only.
10
+ static constexpr mask space = 1 << 0;
11
+ static constexpr mask print = 1 << 1;
12
+ static constexpr mask cntrl = 1 << 2;
13
+ static constexpr mask upper = 1 << 3;
14
+ static constexpr mask lower = 1 << 4;
15
+ static constexpr mask alpha = 1 << 5;
16
+ static constexpr mask digit = 1 << 6;
17
+ static constexpr mask punct = 1 << 7;
18
+ static constexpr mask xdigit = 1 << 8;
19
+ static constexpr mask blank = 1 << 9;
20
+ static constexpr mask alnum = alpha | digit;
21
+ static constexpr mask graph = alnum | punct;
22
  };
23
  }
24
  ```
25
 
26
  The type `mask` is a bitmask type [[bitmask.types]].