From Jason Turner

[func.bind.place]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp4ouazxtc/{from.md → to.md} +16 -6
tmp/tmp4ouazxtc/{from.md → to.md} RENAMED
@@ -1,22 +1,32 @@
1
  #### Placeholders <a id="func.bind.place">[[func.bind.place]]</a>
2
 
3
  ``` cpp
4
- namespace std {
5
- namespace placeholders {
6
  // M is the implementation-defined number of placeholders
7
- extern unspecified _1;
8
- extern unspecified _2;
9
  .
10
  .
11
  .
12
- extern unspecified _M;
13
- }
14
  }
15
  ```
16
 
17
  All placeholder types shall be `DefaultConstructible` and
18
  `CopyConstructible`, and their default constructors and copy/move
19
  constructors shall not throw exceptions. It is *implementation-defined*
20
  whether placeholder types are `CopyAssignable`. `CopyAssignable`
21
  placeholders’ copy assignment operators shall not throw exceptions.
22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  #### Placeholders <a id="func.bind.place">[[func.bind.place]]</a>
2
 
3
  ``` cpp
4
+ namespace std::placeholders {
 
5
  // M is the implementation-defined number of placeholders
6
+ see below _1;
7
+ see below _2;
8
  .
9
  .
10
  .
11
+ see below _M;
 
12
  }
13
  ```
14
 
15
  All placeholder types shall be `DefaultConstructible` and
16
  `CopyConstructible`, and their default constructors and copy/move
17
  constructors shall not throw exceptions. It is *implementation-defined*
18
  whether placeholder types are `CopyAssignable`. `CopyAssignable`
19
  placeholders’ copy assignment operators shall not throw exceptions.
20
 
21
+ Placeholders should be defined as:
22
+
23
+ ``` cpp
24
+ inline constexpr unspecified _1{};
25
+ ```
26
+
27
+ If they are not, they shall be declared as:
28
+
29
+ ``` cpp
30
+ extern unspecified _1;
31
+ ```
32
+