This commit is contained in:
intelliot
2023-03-24 00:35:49 +00:00
parent d7df4cc103
commit 3477e4e497
3 changed files with 209 additions and 196 deletions

View File

@@ -201,14 +201,14 @@ $(function() {
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div>
<div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="classripple_1_1Expected.html#a9fc739c0940d5a91504161560c043eb0"> 139</a></span>&#160; requires std::convertible_to&lt;U, T&gt; constexpr <a class="code" href="classripple_1_1Expected.html#a9fc739c0940d5a91504161560c043eb0">Expected</a>(U &amp;&amp; r)</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; : <a class="code" href="classripple_1_1Expected.html#a7c75c30f3c1e482bae6df26c2c6b8e6d">Base</a>(T{std::forward&lt;U&gt;(r)})</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; : <a class="code" href="classripple_1_1Expected.html#a7c75c30f3c1e482bae6df26c2c6b8e6d">Base</a>(T(<a class="code" href="namespacestd.html">std</a>::forward&lt;U&gt;(r)))</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; {</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; }</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; </div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; requires std::convertible_to&lt;U, E&gt; &amp;&amp;</div>
<div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="classripple_1_1Expected.html#ae55b179b30376177ae33ef15745e2892"> 146</a></span>&#160; (!std::is_reference_v&lt;U&gt;)constexpr <a class="code" href="classripple_1_1Expected.html#ae55b179b30376177ae33ef15745e2892">Expected</a>(<a class="code" href="classripple_1_1Unexpected.html">Unexpected&lt;U&gt;</a> e)</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; : <a class="code" href="classripple_1_1Expected.html#a7c75c30f3c1e482bae6df26c2c6b8e6d">Base</a>(E{std::move(e.<a class="code" href="classripple_1_1Unexpected.html#a57b869ec1d216525e83eb446b4d8641d">value</a>())})</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; : <a class="code" href="classripple_1_1Expected.html#a7c75c30f3c1e482bae6df26c2c6b8e6d">Base</a>(E(std::move(e.<a class="code" href="classripple_1_1Unexpected.html#a57b869ec1d216525e83eb446b4d8641d">value</a>())))</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; {</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; }</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; </div>
@@ -284,7 +284,7 @@ $(function() {
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> U&gt;</div>
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>&#160; requires std::convertible_to&lt;U, E&gt; &amp;&amp;</div>
<div class="line"><a name="l00222"></a><span class="lineno"><a class="line" href="classripple_1_1Expected_3_01void_00_01E_01_4.html#a04d189412bde856d118e39554c8a0c6c"> 222</a></span>&#160; (!std::is_reference_v&lt;U&gt;)constexpr <a class="code" href="classripple_1_1Expected_3_01void_00_01E_01_4.html#a04d189412bde856d118e39554c8a0c6c">Expected</a>(<a class="code" href="classripple_1_1Unexpected.html">Unexpected&lt;U&gt;</a> e)</div>
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>&#160; : <a class="code" href="classripple_1_1Expected_3_01void_00_01E_01_4.html#ab64f7ea889ad57b9d4fb6c12abd03042">Base</a>(E{std::move(e.<a class="code" href="classripple_1_1Unexpected.html#a57b869ec1d216525e83eb446b4d8641d">value</a>())})</div>
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>&#160; : <a class="code" href="classripple_1_1Expected_3_01void_00_01E_01_4.html#ab64f7ea889ad57b9d4fb6c12abd03042">Base</a>(E(std::move(e.<a class="code" href="classripple_1_1Unexpected.html#a57b869ec1d216525e83eb446b4d8641d">value</a>())))</div>
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>&#160; {</div>
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>&#160; }</div>
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>&#160; </div>