Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > c74ab286c3d46f9b82671d206e43a74b > files > 585

libstdc++-docs-4.6.3-2.fc15.i686.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>libstdc++: std::linear_congruential_engine&lt; _UIntType, __a, __c, __m &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.4 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">libstdc++</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('a00579.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="#friends">Friends</a>  </div>
  <div class="headertitle">
<div class="title">std::linear_congruential_engine&lt; _UIntType, __a, __c, __m &gt; Class Template Reference<div class="ingroups"><a class="el" href="a01206.html">Random Number Generators</a></div></div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="std::linear_congruential_engine" -->
<p>A model of a linear congruential random number generator.  
 <a href="a00579.html#details">More...</a></p>

<p><a href="a02201.html">List of all members.</a></p>
<h2><a name="pub-types"></a>
Public Types</h2>
<ul>
<li>typedef _UIntType <a class="el" href="a00579.html#ae47aa1543eb8eef0d874551586c0a8df">result_type</a>
</ul>
<h2><a name="pub-methods"></a>
Public Member Functions</h2>
<ul>
<li><a class="el" href="a00579.html#a0b67d6dfeedae260237da131ce55284c">linear_congruential_engine</a> (<a class="el" href="a00579.html#ae47aa1543eb8eef0d874551586c0a8df">result_type</a> __s=default_seed)
<li>template&lt;typename _Sseq , typename  = typename std::enable_if&lt;!std::is_same&lt;_Sseq, linear_congruential_engine&gt;::value&gt; ::type&gt; <a class="el" href="a00579.html#aaf5c537d5cf6ee34f6bd22e70f5bf7a3">linear_congruential_engine</a> (_Sseq &amp;__q)
<li>void <a class="el" href="a00579.html#a6c3917727c95e3e73ea25871ebd21441">discard</a> (unsigned long long __z)
<li><a class="el" href="a00579.html#ae47aa1543eb8eef0d874551586c0a8df">result_type</a> <a class="el" href="a00579.html#ae42fad7d735fb5d8d96076f70f2f65d4">operator()</a> ()
<li>template&lt;typename _Sseq &gt; <a class="el" href="a00255.html">std::enable_if</a>&lt; <a class="el" href="a00537.html">std::is_class</a><br class="typebreak"/>
&lt; _Sseq &gt;::value &gt;::type <a class="el" href="a00579.html#a5bec05bdd8ee19da50dfc0d5aa570bd2">seed</a> (_Sseq &amp;__q)
<li>void <a class="el" href="a00579.html#aa0c9986cf366682ff3311bca8021ee19">seed</a> (<a class="el" href="a00579.html#ae47aa1543eb8eef0d874551586c0a8df">result_type</a> __s=default_seed)
</ul>
<h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2>
<ul>
<li>static constexpr <a class="el" href="a00579.html#ae47aa1543eb8eef0d874551586c0a8df">result_type</a> <a class="el" href="a00579.html#af334bf0422c2d5ef522e3dac8427d63a">max</a> ()
<li>static constexpr <a class="el" href="a00579.html#ae47aa1543eb8eef0d874551586c0a8df">result_type</a> <a class="el" href="a00579.html#a57c283a281f9b007e0a7659b57586f52">min</a> ()
</ul>
<h2><a name="pub-static-attribs"></a>
Static Public Attributes</h2>
<ul>
<li><a class="anchor" id="ab62332ca7396e841168392e37cc87f6d"></a><!-- doxytag: member="std::linear_congruential_engine::default_seed" ref="ab62332ca7396e841168392e37cc87f6d" args="" -->
static constexpr <a class="el" href="a00579.html#ae47aa1543eb8eef0d874551586c0a8df">result_type</a> <b>default_seed</b>
<li>static constexpr <a class="el" href="a00579.html#ae47aa1543eb8eef0d874551586c0a8df">result_type</a> <a class="el" href="a00579.html#ad2d0da3af999df8d7992143640f344a6">increment</a>
<li>static constexpr <a class="el" href="a00579.html#ae47aa1543eb8eef0d874551586c0a8df">result_type</a> <a class="el" href="a00579.html#a9c73f24c92d06c4aa7c5b2c37d8c6dcb">modulus</a>
<li>static constexpr <a class="el" href="a00579.html#ae47aa1543eb8eef0d874551586c0a8df">result_type</a> <a class="el" href="a00579.html#a5f6ca5414f03b35e0a82731cf9cd6496">multiplier</a>
</ul>
<h2><a name="friends"></a>
Friends</h2>
<ul>
<li>template&lt;typename _UIntType1 , _UIntType1 __a1, _UIntType1 __c1, _UIntType1 __m1, typename _CharT , typename _Traits &gt; <a class="el" href="a00251.html">std::basic_ostream</a>&lt; _CharT, <br class="typebreak"/>
_Traits &gt; &amp; <a class="el" href="a00579.html#a3e62622908b8c423c439dc9dca8af81a">operator&lt;&lt;</a> (<a class="el" href="a00251.html">std::basic_ostream</a>&lt; _CharT, _Traits &gt; &amp;, const <a class="el" href="a00579.html">std::linear_congruential_engine</a>&lt; _UIntType1, __a1, __c1, __m1 &gt; &amp;)
<li>bool <a class="el" href="a00579.html#ab062526efb78cd1480aff1eb1544b341">operator==</a> (const <a class="el" href="a00579.html">linear_congruential_engine</a> &amp;__lhs, const <a class="el" href="a00579.html">linear_congruential_engine</a> &amp;__rhs)
<li>template&lt;typename _UIntType1 , _UIntType1 __a1, _UIntType1 __c1, _UIntType1 __m1, typename _CharT , typename _Traits &gt; <a class="el" href="a00250.html">std::basic_istream</a>&lt; _CharT, <br class="typebreak"/>
_Traits &gt; &amp; <a class="el" href="a00579.html#af6f2a12896f78e6d53370278e11f86fd">operator&gt;&gt;</a> (<a class="el" href="a00250.html">std::basic_istream</a>&lt; _CharT, _Traits &gt; &amp;, <a class="el" href="a00579.html">std::linear_congruential_engine</a>&lt; _UIntType1, __a1, __c1, __m1 &gt; &amp;)
</ul>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename _UIntType, _UIntType __a, _UIntType __c, _UIntType __m&gt;<br/>
class std::linear_congruential_engine&lt; _UIntType, __a, __c, __m &gt;</h3>

<p>A model of a linear congruential random number generator. </p>
<p>A random number generator that produces pseudorandom numbers via linear function: </p>
<p class="formulaDsp">
<img class="formulaDsp" alt="\[ x_{i+1}\leftarrow(ax_{i} + c) \bmod m \]" src="form_0.png"/>
</p>
<p>The template parameter <code>_UIntType</code> must be an unsigned integral type large enough to store values up to (__m-1). If the template parameter <code>__m</code> is 0, the modulus <code>__m</code> used is <a class="el" href="a01184.html#gaacf2fd7d602b70d56279425df06bd02c" title="This does what you think it does.">std::numeric_limits&lt;_UIntType&gt;::max()</a> plus 1. Otherwise, the template parameters <code>__a</code> and <code>__c</code> must be less than <code>__m</code>.</p>
<p>The size of the state is <img class="formulaInl" alt="$1$" src="form_1.png"/>. </p>

<p>Definition at line <a class="el" href="a00997_source.html#l00170">170</a> of file <a class="el" href="a00997_source.html">random.h</a>.</p>
</div><hr/><h2>Member Typedef Documentation</h2>
<a class="anchor" id="ae47aa1543eb8eef0d874551586c0a8df"></a><!-- doxytag: member="std::linear_congruential_engine::result_type" ref="ae47aa1543eb8eef0d874551586c0a8df" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _UIntType, _UIntType __a, _UIntType __c, _UIntType __m&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef _UIntType <a class="el" href="a00579.html">std::linear_congruential_engine</a>&lt; _UIntType, __a, __c, __m &gt;::<a class="el" href="a00579.html#ae47aa1543eb8eef0d874551586c0a8df">result_type</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The type of the generated random value. </p>

<p>Definition at line <a class="el" href="a00997_source.html#l00184">184</a> of file <a class="el" href="a00997_source.html">random.h</a>.</p>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a0b67d6dfeedae260237da131ce55284c"></a><!-- doxytag: member="std::linear_congruential_engine::linear_congruential_engine" ref="a0b67d6dfeedae260237da131ce55284c" args="(result_type __s=default_seed)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _UIntType, _UIntType __a, _UIntType __c, _UIntType __m&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00579.html">std::linear_congruential_engine</a>&lt; _UIntType, __a, __c, __m &gt;::<a class="el" href="a00579.html">linear_congruential_engine</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00579.html#ae47aa1543eb8eef0d874551586c0a8df">result_type</a>&#160;</td>
          <td class="paramname"><em>__s</em> = <code>default_seed</code></td><td>)</td>
          <td><code> [inline, explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs a linear_congruential_engine random number generator engine with seed <code>__s</code>. The default seed value is 1. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">__s</td><td>The initial seed value. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="a00997_source.html#l00202">202</a> of file <a class="el" href="a00997_source.html">random.h</a>.</p>

<p>References <a class="el" href="a00998_source.html#l00136">std::linear_congruential_engine&lt; _UIntType, __a, __c, __m &gt;::seed()</a>.</p>

</div>
</div>
<a class="anchor" id="aaf5c537d5cf6ee34f6bd22e70f5bf7a3"></a><!-- doxytag: member="std::linear_congruential_engine::linear_congruential_engine" ref="aaf5c537d5cf6ee34f6bd22e70f5bf7a3" args="(_Sseq &amp;__q)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _UIntType, _UIntType __a, _UIntType __c, _UIntType __m&gt; </div>
<div class="memtemplate">
template&lt;typename _Sseq , typename  = typename std::enable_if&lt;!std::is_same&lt;_Sseq, linear_congruential_engine&gt;::value&gt; ::type&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00579.html">std::linear_congruential_engine</a>&lt; _UIntType, __a, __c, __m &gt;::<a class="el" href="a00579.html">linear_congruential_engine</a> </td>
          <td>(</td>
          <td class="paramtype">_Sseq &amp;&#160;</td>
          <td class="paramname"><em>__q</em></td><td>)</td>
          <td><code> [inline, explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs a linear_congruential_engine random number generator engine seeded from the seed sequence <code>__q</code>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">__q</td><td>the seed sequence. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="a00997_source.html#l00215">215</a> of file <a class="el" href="a00997_source.html">random.h</a>.</p>

<p>References <a class="el" href="a00998_source.html#l00136">std::linear_congruential_engine&lt; _UIntType, __a, __c, __m &gt;::seed()</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a6c3917727c95e3e73ea25871ebd21441"></a><!-- doxytag: member="std::linear_congruential_engine::discard" ref="a6c3917727c95e3e73ea25871ebd21441" args="(unsigned long long __z)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _UIntType, _UIntType __a, _UIntType __c, _UIntType __m&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="a00579.html">std::linear_congruential_engine</a>&lt; _UIntType, __a, __c, __m &gt;::discard </td>
          <td>(</td>
          <td class="paramtype">unsigned long long&#160;</td>
          <td class="paramname"><em>__z</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Discard a sequence of random numbers. </p>

<p>Definition at line <a class="el" href="a00997_source.html#l00259">259</a> of file <a class="el" href="a00997_source.html">random.h</a>.</p>

</div>
</div>
<a class="anchor" id="af334bf0422c2d5ef522e3dac8427d63a"></a><!-- doxytag: member="std::linear_congruential_engine::max" ref="af334bf0422c2d5ef522e3dac8427d63a" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _UIntType, _UIntType __a, _UIntType __c, _UIntType __m&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">static constexpr <a class="el" href="a00579.html#ae47aa1543eb8eef0d874551586c0a8df">result_type</a> <a class="el" href="a00579.html">std::linear_congruential_engine</a>&lt; _UIntType, __a, __c, __m &gt;::max </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the largest possible value in the output range. </p>

<p>Definition at line <a class="el" href="a00997_source.html#l00252">252</a> of file <a class="el" href="a00997_source.html">random.h</a>.</p>

</div>
</div>
<a class="anchor" id="a57c283a281f9b007e0a7659b57586f52"></a><!-- doxytag: member="std::linear_congruential_engine::min" ref="a57c283a281f9b007e0a7659b57586f52" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _UIntType, _UIntType __a, _UIntType __c, _UIntType __m&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">static constexpr <a class="el" href="a00579.html#ae47aa1543eb8eef0d874551586c0a8df">result_type</a> <a class="el" href="a00579.html">std::linear_congruential_engine</a>&lt; _UIntType, __a, __c, __m &gt;::min </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the smallest possible value in the output range. </p>
<p>The minimum depends on the <code>__c</code> parameter: if it is zero, the minimum generated must be &gt; 0, otherwise 0 is allowed. </p>

<p>Definition at line <a class="el" href="a00997_source.html#l00245">245</a> of file <a class="el" href="a00997_source.html">random.h</a>.</p>

</div>
</div>
<a class="anchor" id="ae42fad7d735fb5d8d96076f70f2f65d4"></a><!-- doxytag: member="std::linear_congruential_engine::operator()" ref="ae42fad7d735fb5d8d96076f70f2f65d4" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _UIntType, _UIntType __a, _UIntType __c, _UIntType __m&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00579.html#ae47aa1543eb8eef0d874551586c0a8df">result_type</a> <a class="el" href="a00579.html">std::linear_congruential_engine</a>&lt; _UIntType, __a, __c, __m &gt;::operator() </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the next random number in the sequence. </p>

<p>Definition at line <a class="el" href="a00997_source.html#l00269">269</a> of file <a class="el" href="a00997_source.html">random.h</a>.</p>

</div>
</div>
<a class="anchor" id="a5bec05bdd8ee19da50dfc0d5aa570bd2"></a><!-- doxytag: member="std::linear_congruential_engine::seed" ref="a5bec05bdd8ee19da50dfc0d5aa570bd2" args="(_Sseq &amp;__q)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _UIntType , _UIntType __a, _UIntType __c, _UIntType __m&gt; </div>
<div class="memtemplate">
template&lt;typename _Sseq &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00255.html">std::enable_if</a>&lt; <a class="el" href="a00537.html">std::is_class</a>&lt; _Sseq &gt;::value &gt;::type <a class="el" href="a00579.html">std::linear_congruential_engine</a>&lt; _UIntType, __a, __c, __m &gt;::seed </td>
          <td>(</td>
          <td class="paramtype">_Sseq &amp;&#160;</td>
          <td class="paramname"><em>__q</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reseeds the linear_congruential_engine random number generator engine sequence using values from the seed sequence <code>__q</code>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">__q</td><td>the seed sequence.</td></tr>
  </table>
  </dd>
</dl>
<p>Seeds the LCR engine with a value generated by <code>__q</code>. </p>

<p>Definition at line <a class="el" href="a00998_source.html#l00152">152</a> of file <a class="el" href="a00998_source.html">random.tcc</a>.</p>

<p>References <a class="el" href="a01046_source.html#l00972">std::__lg()</a>.</p>

</div>
</div>
<a class="anchor" id="aa0c9986cf366682ff3311bca8021ee19"></a><!-- doxytag: member="std::linear_congruential_engine::seed" ref="aa0c9986cf366682ff3311bca8021ee19" args="(result_type __s=default_seed)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _UIntType , _UIntType __a, _UIntType __c, _UIntType __m&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="a00579.html">std::linear_congruential_engine</a>&lt; _UIntType, __a, __c, __m &gt;::seed </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00579.html#ae47aa1543eb8eef0d874551586c0a8df">result_type</a>&#160;</td>
          <td class="paramname"><em>__s</em> = <code>default_seed</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reseeds the linear_congruential_engine random number generator engine sequence to the seed <code>__s</code>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">__s</td><td>The new seed.</td></tr>
  </table>
  </dd>
</dl>
<p>Seeds the LCR with integral value <code>__s</code>, adjusted so that the ring identity is never a member of the convergence set. </p>

<p>Definition at line <a class="el" href="a00998_source.html#l00136">136</a> of file <a class="el" href="a00998_source.html">random.tcc</a>.</p>

<p>Referenced by <a class="el" href="a00997_source.html#l00202">std::linear_congruential_engine&lt; _UIntType, __a, __c, __m &gt;::linear_congruential_engine()</a>.</p>

</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="a3e62622908b8c423c439dc9dca8af81a"></a><!-- doxytag: member="std::linear_congruential_engine::operator&lt;&lt;" ref="a3e62622908b8c423c439dc9dca8af81a" args="(std::basic_ostream&lt; _CharT, _Traits &gt; &amp;, const std::linear_congruential_engine&lt; _UIntType1, __a1, __c1, __m1 &gt; &amp;)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _UIntType, _UIntType __a, _UIntType __c, _UIntType __m&gt; </div>
<div class="memtemplate">
template&lt;typename _UIntType1 , _UIntType1 __a1, _UIntType1 __c1, _UIntType1 __m1, typename _CharT , typename _Traits &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00251.html">std::basic_ostream</a>&lt;_CharT, _Traits&gt;&amp; operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00251.html">std::basic_ostream</a>&lt; _CharT, _Traits &gt; &amp;&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="a00579.html">std::linear_congruential_engine</a>&lt; _UIntType1, __a1, __c1, __m1 &gt; &amp;&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Writes the textual representation of the state x(i) of x to <code>__os</code>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">__os</td><td>The output stream. </td></tr>
    <tr><td class="paramname">__lcr</td><td>A % <a class="el" href="a00579.html" title="A model of a linear congruential random number generator.">linear_congruential_engine</a> random number generator. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>__os. </dd></dl>

</div>
</div>
<a class="anchor" id="ab062526efb78cd1480aff1eb1544b341"></a><!-- doxytag: member="std::linear_congruential_engine::operator==" ref="ab062526efb78cd1480aff1eb1544b341" args="(const linear_congruential_engine &amp;__lhs, const linear_congruential_engine &amp;__rhs)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _UIntType, _UIntType __a, _UIntType __c, _UIntType __m&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00579.html">linear_congruential_engine</a>&lt; _UIntType, __a, __c, __m &gt; &amp;&#160;</td>
          <td class="paramname"><em>__lhs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="a00579.html">linear_congruential_engine</a>&lt; _UIntType, __a, __c, __m &gt; &amp;&#160;</td>
          <td class="paramname"><em>__rhs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Compares two linear congruential random number generator objects of the same type for equality. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">__lhs</td><td>A linear congruential random number generator object. </td></tr>
    <tr><td class="paramname">__rhs</td><td>Another linear congruential random number generator object.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if the infinite sequences of generated values would be equal, false otherwise. </dd></dl>

<p>Definition at line <a class="el" href="a00997_source.html#l00287">287</a> of file <a class="el" href="a00997_source.html">random.h</a>.</p>

</div>
</div>
<a class="anchor" id="af6f2a12896f78e6d53370278e11f86fd"></a><!-- doxytag: member="std::linear_congruential_engine::operator&gt;&gt;" ref="af6f2a12896f78e6d53370278e11f86fd" args="(std::basic_istream&lt; _CharT, _Traits &gt; &amp;, std::linear_congruential_engine&lt; _UIntType1, __a1, __c1, __m1 &gt; &amp;)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _UIntType, _UIntType __a, _UIntType __c, _UIntType __m&gt; </div>
<div class="memtemplate">
template&lt;typename _UIntType1 , _UIntType1 __a1, _UIntType1 __c1, _UIntType1 __m1, typename _CharT , typename _Traits &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00250.html">std::basic_istream</a>&lt;_CharT, _Traits&gt;&amp; operator&gt;&gt; </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00250.html">std::basic_istream</a>&lt; _CharT, _Traits &gt; &amp;&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00579.html">std::linear_congruential_engine</a>&lt; _UIntType1, __a1, __c1, __m1 &gt; &amp;&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the state of the engine by reading its textual representation from <code>__is</code>. </p>
<p>The textual representation must have been previously written using an output stream whose imbued locale and whose type's template specialization arguments _CharT and _Traits were the same as those of <code>__is</code>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">__is</td><td>The input stream. </td></tr>
    <tr><td class="paramname">__lcr</td><td>A % <a class="el" href="a00579.html" title="A model of a linear congruential random number generator.">linear_congruential_engine</a> random number generator. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>__is. </dd></dl>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="ad2d0da3af999df8d7992143640f344a6"></a><!-- doxytag: member="std::linear_congruential_engine::increment" ref="ad2d0da3af999df8d7992143640f344a6" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _UIntType, _UIntType __a, _UIntType __c, _UIntType __m&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">constexpr _UIntType <a class="el" href="a00579.html">std::linear_congruential_engine</a>&lt; _UIntType, __a, __c, __m &gt;::<a class="el" href="a00579.html#ad2d0da3af999df8d7992143640f344a6">increment</a><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>An increment. </p>

<p>Definition at line <a class="el" href="a00997_source.html#l00189">189</a> of file <a class="el" href="a00997_source.html">random.h</a>.</p>

</div>
</div>
<a class="anchor" id="a9c73f24c92d06c4aa7c5b2c37d8c6dcb"></a><!-- doxytag: member="std::linear_congruential_engine::modulus" ref="a9c73f24c92d06c4aa7c5b2c37d8c6dcb" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _UIntType, _UIntType __a, _UIntType __c, _UIntType __m&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">constexpr _UIntType <a class="el" href="a00579.html">std::linear_congruential_engine</a>&lt; _UIntType, __a, __c, __m &gt;::<a class="el" href="a00603.html">modulus</a><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The modulus. </p>

<p>Definition at line <a class="el" href="a00997_source.html#l00191">191</a> of file <a class="el" href="a00997_source.html">random.h</a>.</p>

</div>
</div>
<a class="anchor" id="a5f6ca5414f03b35e0a82731cf9cd6496"></a><!-- doxytag: member="std::linear_congruential_engine::multiplier" ref="a5f6ca5414f03b35e0a82731cf9cd6496" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _UIntType, _UIntType __a, _UIntType __c, _UIntType __m&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">constexpr _UIntType <a class="el" href="a00579.html">std::linear_congruential_engine</a>&lt; _UIntType, __a, __c, __m &gt;::<a class="el" href="a00579.html#a5f6ca5414f03b35e0a82731cf9cd6496">multiplier</a><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The multiplier. </p>

<p>Definition at line <a class="el" href="a00997_source.html#l00187">187</a> of file <a class="el" href="a00997_source.html">random.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="a00997_source.html">random.h</a></li>
<li><a class="el" href="a00998_source.html">random.tcc</a></li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="a01137.html">std</a>      </li>
      <li class="navelem"><a class="el" href="a00579.html">linear_congruential_engine</a>      </li>
      <li class="footer">Generated by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </li>
    </ul>
  </div>

</body>
</html>