Skip to content

Commit 9458ef6

Browse files
committed
Apply LWG2390 from N4079.
1 parent 92be114 commit 9458ef6

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

utilities.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -394,17 +394,17 @@ <h1>Other type transformations</h1>
394394

395395
<p>
396396
The nested typedef <code>invocation_type&lt;Fn(ArgTypes...)&gt;::type</code> shall be defined as follows.
397+
If <code>raw_invocation_type&lt;Fn(ArgTypes...)&gt;::type</code> does not exist, there shall be no member typedef <code>type</code>.
398+
Otherwise:
397399
</p>
398400
<ul>
399-
<li>If
400-
<ul>
401-
<li><code>raw_invocation_type&lt;<wbr/>Fn(ArgTypes...)<wbr/>&gt;::type</code>
402-
is the function type <code>R(T1, T2, ...)</code>,</li>
403-
<li><code>Fn</code> is a pointer to member type, and</li>
404-
<li><code>T1</code> is an rvalue reference,</li>
405-
</ul>
406-
then the member typedef <code>type</code> shall name the function type <code>R(decay&lt;T1&gt;::type, T2, ...)</code>.</li>
407-
<li>Otherwise, the member typedef <code>type</code> shall name <code>raw_invocation_type&lt;<wbr/>Fn(ArgTypes...)<wbr/>&gt;::type</code>.</li>
401+
<li>Let <code>A1, A2,</code> … denote <code>ArgTypes...</code></li>
402+
<li>Let <code>R(T1, T2, …)</code> denote <code>raw_invocation_type_t&lt;Fn(ArgTypes...)&gt;</code></li>
403+
<li>
404+
Then the member typedef <code>type</code> shall name the function type <code>R(U1, U2, …)</code>
405+
where <code>Ui</code> is <code>decay_t&lt;Ai&gt;</code> if <code>declval&lt;Ai&gt;()</code> is an rvalue
406+
otherwise <code>Ti</code>.
407+
</li>
408408
</ul>
409409
</cxx-section>
410410
</cxx-section>

0 commit comments

Comments
 (0)