You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The second <span class='keyword'>template</span> argument of the returned \tcode<span class='curlybracket'>{</span>span<span class='curlybracket'>}</span> type
<span class='keyword'>if</span> \tcode<span class='curlybracket'>{</span>ranges<span class='operator'>::</span>size<span class='parenthesis'>(</span>r<span class='parenthesis'>)</span><span class='curlybracket'>}</span> is a constant expression, and
</span></div></div></div></div><div class='para'><div class='marginalizedparent'><a class='marginalized' href='meta.define.static#17'>17</a></div><div class='itemdescr'><div class='sourceLinkParent'><a class='sourceLink' href='https://github.com/cplusplus/draft/tree/1e747bf358e4546e9661c6bcee01a1dd71d2186f/source/meta.tex#L3294'>#</a></div><div class='texpara'><div id='meta.define.static-17.sentence-1' class='sentence'><i >Remarks</i>: The second template argument of the returned <span class='texttt'>span</span> type
if <span class='texttt'>ranges<span class='operator'>​::​</span>size<span class='parenthesis'>(</span>r<span class='parenthesis'>)</span></span> is a constant expression, and
The second <spanclass='keyword'>template</span> argument of the returned \tcode<spanclass='curlybracket'>{</span>span<spanclass='curlybracket'>}</span> type
57
-
is \tcode<spanclass='curlybracket'>{</span><spanclass='keyword'>static_cast</span><spanclass='anglebracket'><</span>size_t<spanclass='anglebracket'>></span><spanclass='parenthesis'>(</span>ranges<spanclass='operator'>::</span>size<spanclass='parenthesis'>(</span>r<spanclass='parenthesis'>)</span><spanclass='parenthesis'>)</span><spanclass='curlybracket'>}</span>
58
-
<spanclass='keyword'>if</span> \tcode<spanclass='curlybracket'>{</span>ranges<spanclass='operator'>::</span>size<spanclass='parenthesis'>(</span>r<spanclass='parenthesis'>)</span><spanclass='curlybracket'>}</span> is a constant expression, and
</span></div></div></div></div><divclass='para' id='17'><divclass='marginalizedparent'><aclass='marginalized' href='#17'>17</a></div><divclass='itemdescr'><divclass='sourceLinkParent'><aclass='sourceLink' href='https://github.com/cplusplus/draft/tree/1e747bf358e4546e9661c6bcee01a1dd71d2186f/source/meta.tex#L3294'>#</a></div><divclass='texpara'><divid='17.sentence-1' class='sentence'><i>Remarks</i>: The second template argument of the returned <spanclass='texttt'>span</span> type
54
+
is <spanclass='texttt'><spanclass='keyword'>static_<spanclass='shy'></span>cast</span><spanclass='anglebracket'><</span>size_<spanclass='shy'></span>t<spanclass='anglebracket'>></span><spanclass='parenthesis'>(</span>ranges<spanclass='operator'>​::​</span>size<spanclass='parenthesis'>(</span>r<spanclass='parenthesis'>)</span><spanclass='parenthesis'>)</span></span>
55
+
if <spanclass='texttt'>ranges<spanclass='operator'>​::​</span>size<spanclass='parenthesis'>(</span>r<spanclass='parenthesis'>)</span></span> is a constant expression, and
</code></div></div></div><divclass='para' id='17'><divclass='marginalizedparent'><aclass='marginalized' href='#17'>17</a></div><divclass='itemdescr'><divclass='sourceLinkParent'><aclass='sourceLink' href='https://github.com/cplusplus/draft/tree/1e747bf358e4546e9661c6bcee01a1dd71d2186f/source/meta.tex#L3309'>#</a></div><divclass='texpara'><divid='17.sentence-1' class='sentence'><i>Effects</i>: Equivalent to:
58
+
</code></div></div></div><divclass='para' id='18'><divclass='marginalizedparent'><aclass='marginalized' href='#18'>18</a></div><divclass='itemdescr'><divclass='sourceLinkParent'><aclass='sourceLink' href='https://github.com/cplusplus/draft/tree/1e747bf358e4546e9661c6bcee01a1dd71d2186f/source/meta.tex#L3309'>#</a></div><divclass='texpara'><divid='18.sentence-1' class='sentence'><i>Effects</i>: Equivalent to:
63
59
<spanclass='codeblock'><spanclass='keyword'>using</span> U <spanclass='operator'>=</span> remove_cvref_t<spanclass='anglebracket'><</span>T<spanclass='anglebracket'>></span>;
the address of the template parameter object (<ahref='temp.param' title='13.2 Template parameters'>[temp.<spanclass='shy'></span>param]</a>)
76
-
that is template-argument equivalent to <spanclass='texttt'>t</span><aclass='hidden_link' href='#18.sentence-1'>.</a></div> — <i>end note</i>]</div></div></div></div></div></div></body></html>
72
+
that is template-argument equivalent to <spanclass='texttt'>t</span><aclass='hidden_link' href='#19.sentence-1'>.</a></div> — <i>end note</i>]</div></div></div></div></div></div></body></html>
0 commit comments