Files
hustoj/web/cppreference-zh/chmhelp/cpp-named_req-seedsequence.html
2025-08-01 12:57:54 +08:00

88 lines
6.5 KiB
HTML

<!DOCTYPE html>
<html lang="zh" dir="ltr" class="client-nojs" xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh">
<head><meta http-equiv="x-ua-compatible" content="ie=edge">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>C++ &#20855;&#21517;&#35201;&#27714;&#65306;&#31181;&#23376;&#24207;&#21015; (SeedSequence)</title>
<link rel="stylesheet" href="ext.css" />
<link rel="stylesheet" href="site_modules.css" />
</head>
<body class="mediawiki ltr sitedir-ltr ns-0 ns-subject page-cpp_named_req_SeedSequence skin-cppreference2 action-view cpp-navbar">
<div id="cpp-content-base">
<div id="content"><a id="top"></a>
<h1 id="firstHeading" class="firstHeading"><span style="font-size:0.7em; line-height:130%">C++ &#20855;&#21517;&#35201;&#27714;&#65306;</span><span style="font-style:italic">&#31181;&#23376;&#24207;&#21015;</span> <span style="font-family: Georgia, &#39;DejaVu Serif&#39;, serif; font-style:italic">(SeedSequence)</span></h1>
<div id="bodyContent">
<div id="contentSub"><span class="subpages">&lt; <a href="cpp.html">cpp</a>&lrm; | <a href="cpp-named_req.html">named req</a></span></div>
<div id="mw-content-text" lang="zh" dir="ltr" class="mw-content-ltr" xml:lang="zh">
<p><strong class="selflink"><span style="font-style:italic">&#31181;&#23376;&#24207;&#21015;</span> <span style="font-family: Georgia, &#39;DejaVu Serif&#39;, serif; font-style:italic">(SeedSequence)</span></strong> &#26159;&#22522;&#20110;&#28040;&#36153;&#30340;&#25972;&#25968;&#25968;&#25454;&#33539;&#22260;&#65292;&#20135;&#29983; <span class="texhtml" style="white-space: nowrap;">0 &le; i &lt; 2<span class="t-su">32<br /></span></span> &#33539;&#22260;&#20013;&#30340;&#26080;&#31526;&#21495;&#25972;&#25968;&#20540; <span class="texhtml" style="white-space: nowrap;">i</span> &#30340;&#23545;&#35937;&#12290;</p>
<h3><span class="mw-headline" id=".E8.A6.81.E6.B1.82">&#35201;&#27714;</span></h3>
<ul>
<li><code><b>S</b></code> &#26159;&#31181;&#23376;&#24207;&#21015; (<span style="font-style:italic">&#31181;&#23376;&#24207;&#21015;</span> <span style="font-family: Georgia, &#39;DejaVu Serif&#39;, serif; font-style:italic">(SeedSequence)</span> ) &#12290;</li>
<li><code><b>q</b></code> &#26159; <code>S</code> &#30340;&#23545;&#35937;&#19988; <code><b>r</b></code> &#26159; <code>S</code> &#30340;&#28508;&#22312;&#24120;&#23545;&#35937;&#12290;</li>
<li><code><b>T</b></code> &#20026; <code>result_type</code> &#12290;</li>
<li><code><b>ib</b></code> &#12289; <code><b>ie</b></code> &#26159;<a href="cpp-named_req-InputIterator.html"><span style="font-style:italic">&#32769;&#24335;&#36755;&#20837;&#36845;&#20195;&#22120;</span> <span style="font-family: Georgia, &#39;DejaVu Serif&#39;, serif; font-style:italic">(LegacyInputIterator)</span></a> &#65292;&#20854; <code>value_type</code> &#20026;&#33267;&#23569; 32 &#20301;&#30340;&#26080;&#31526;&#21495;&#25972;&#25968;&#20540;&#12290;</li>
<li><code><b>il</b></code> &#26159;&#19968;&#20010; <span class="t-c"><span class="mw-geshi cpp source-cpp"><a href="cpp-utility-initializer_list.html"><span class="kw960">std::<span class="me2">initializer_list</span></span></a><span class="sy1">&lt;</span>T<span class="sy1">&gt;</span></span></span> &#12290;</li>
<li><code><b>rb</b></code> &#12289; <code><b>re</b></code> &#26159;<a href="cpp-named_req-OutputIterator.html">&#21487;&#21464;</a><a href="cpp-named_req-RandomAccessIterator.html"><span style="font-style:italic">&#32769;&#24335;&#38543;&#26426;&#35775;&#38382;&#36845;&#20195;&#22120;</span> <span style="font-family: Georgia, &#39;DejaVu Serif&#39;, serif; font-style:italic">(LegacyRandomAccessIterator)</span></a> &#65292;&#20854; <code>value_type</code> &#20026;&#33267;&#23569; 32 &#20301;&#30340;&#26080;&#31526;&#21495;&#25972;&#25968;&#20540;&#12290;</li>
<li><code><b>ob</b></code> &#26159;<a href="cpp-named_req-OutputIterator.html"><span style="font-style:italic">&#32769;&#24335;&#36755;&#20986;&#36845;&#20195;&#22120;</span> <span style="font-family: Georgia, &#39;DejaVu Serif&#39;, serif; font-style:italic">(LegacyOutputIterator)</span></a> &#12290;</li>
</ul>
<table class="wikitable">
<tr>
<th>&#34920;&#36798;&#24335;</th>
<th>&#31867;&#22411;</th>
<th>&#27880;&#24847;</th>
<th>&#22797;&#26434;&#24230;</th>
</tr>
<tr>
<td><code>S::result_type</code></td>
<td><code>T</code></td>
<td>&#33267;&#23569; 32 &#20301;&#30340;&#26080;&#31526;&#21495;&#25972;&#25968;</td>
<td>&#32534;&#35793;&#26102;</td>
</tr>
<tr>
<td><code>S()</code></td>
<td></td>
<td>&#21019;&#24314;&#25317;&#26377;&#21516; <code>S</code> &#31867;&#22411;&#20854;&#20182;&#23545;&#35937;&#30340;&#40664;&#35748;&#20540;&#30340;&#31181;&#23376;&#24207;&#21015;</td>
<td>&#24120;&#25968;</td>
</tr>
<tr>
<td><code>S(ib,ie)</code></td>
<td></td>
<td>&#21019;&#24314;&#22522;&#20110; <span class="texhtml" style="white-space: nowrap;">[<code>ib</code>,<code>ie</code>)</span> &#25152;&#25552;&#20379;&#36755;&#20837;&#20301;&#30340;&#31181;&#23376;&#24207;&#21015;</td>
<td><span class="texhtml" style="white-space: nowrap;">O(ie-ib)</span></td>
</tr>
<tr>
<td><code>S(il)</code></td>
<td></td>
<td>&#21516; <code>S(il.begin(), il.end())</code></td>
<td></td>
</tr>
<tr>
<td><code>q.generate(rb,re)</code></td>
<td><code>void</code></td>
<td>&#20197;&#20381;&#36182;&#21021;&#22987;&#25552;&#20379;&#20540;&#21644;&#28508;&#22312;&#30340;&#21040; <code>generate</code> &#30340;&#20808;&#21069;&#35843;&#29992;&#30340; 32 &#20301;&#25968;&#37327;&#22635;&#20805; <span class="texhtml" style="white-space: nowrap;">[<code>rb</code>,<code>re</code>)</span> &#12290;&#33509; <code>rb == re</code> &#21017;&#19981;&#20570;&#20219;&#20309;&#20107;&#12290;</td>
<td><span class="texhtml" style="white-space: nowrap;">O(re-rb)</span></td>
</tr>
<tr>
<td><code>r.size()</code></td>
<td><code>size_t</code></td>
<td><code>param</code> &#25152;&#22797;&#21046;&#30340; 32 &#20301;&#25972;&#25968;&#30340;&#37327;&#12290;</td>
<td>&#24120;&#25968;</td>
</tr>
<tr>
<td><code>r.param(ob)</code></td>
<td><code>void</code></td>
<td>&#22797;&#21046; 32 &#20301;&#20540;&#65292;&#21040;&#33509;&#20256;&#36882;&#32473; <code>S</code> &#30340;&#26500;&#36896;&#20989;&#25968;&#21017;&#20250;&#37325;&#29983;&#25104;&#23545;&#35937;&#24403;&#21069;&#29366;&#24577;&#30340; <code>ob</code> &#12290;</td>
<td><span class="texhtml" style="white-space: nowrap;">O(r.size())</span></td>
</tr>
</table>
<h3><span class="mw-headline" id=".E5.8F.82.E9.98.85">&#21442;&#38405;</span></h3>
<ul>
<li><span class="t-lc"><a href="cpp-numeric-random-seed_seq.html">std::seed_seq</a></span></li>
</ul>
</div>
<div class="visualClear"></div>
</div>
</div>
</div>
</body>
</html>