From Jason Turner

[func.not.fn]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp27lgii3m/{from.md → to.md} +25 -0
tmp/tmp27lgii3m/{from.md → to.md} RENAMED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### Function template `not_fn` <a id="func.not.fn">[[func.not.fn]]</a>
2
+
3
+ ``` cpp
4
+ template<class F> constexpr unspecified not_fn(F&& f);
5
+ ```
6
+
7
+ In the text that follows:
8
+
9
+ - `g` is a value of the result of a `not_fn` invocation,
10
+ - `FD` is the type `decay_t<F>`,
11
+ - `fd` is the target object of `g` [[func.def]] of type `FD`,
12
+ direct-non-list-initialized with `std::forward<F>(f)`,
13
+ - `call_args` is an argument pack used in a function call
14
+ expression [[expr.call]] of `g`.
15
+
16
+ *Mandates:* `is_constructible_v<FD, F> && is_move_constructible_v<FD>`
17
+ is `true`.
18
+
19
+ *Preconditions:* `FD` meets the *Cpp17MoveConstructible* requirements.
20
+
21
+ *Returns:* A perfect forwarding call wrapper `g` with call pattern
22
+ `!invoke(fd, call_args...)`.
23
+
24
+ *Throws:* Any exception thrown by the initialization of `fd`.
25
+