Sophie

Sophie

distrib > Mageia > 3 > i586 > by-pkgid > f5e5087a439fef5532501bf9a6ff9c34 > files > 572

libstdc++-docs-4.7.2-8.1.mga3.noarch.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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3"/>
<title>libstdc++: __gnu_pbds::hash_exponential_size_policy&lt; Size_Type &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<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>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3 -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('a00339.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="#pro-methods">Protected Member Functions</a> &#124;
<a href="a02315.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">__gnu_pbds::hash_exponential_size_policy&lt; Size_Type &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a5eb89dd5b3edf1987accc5787b43b4d6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5eb89dd5b3edf1987accc5787b43b4d6"></a>
typedef Size_Type&#160;</td><td class="memItemRight" valign="bottom"><b>size_type</b></td></tr>
<tr class="separator:a5eb89dd5b3edf1987accc5787b43b4d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:afaa82af641851bf662b2cf2f60ea1eb9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00339.html#afaa82af641851bf662b2cf2f60ea1eb9">hash_exponential_size_policy</a> (size_type start_size=8, size_type grow_factor=2)</td></tr>
<tr class="separator:afaa82af641851bf662b2cf2f60ea1eb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6d33fbaf937ec48d29da89ab03be946d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6d33fbaf937ec48d29da89ab03be946d"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>swap</b> (<a class="el" href="a00339.html">hash_exponential_size_policy</a>&lt; Size_Type &gt; &amp;other)</td></tr>
<tr class="separator:a6d33fbaf937ec48d29da89ab03be946d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a6b721b2ef39380ca007f3f0a6e39d856"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6b721b2ef39380ca007f3f0a6e39d856"></a>
size_type&#160;</td><td class="memItemRight" valign="bottom"><b>get_nearest_larger_size</b> (size_type size) const </td></tr>
<tr class="separator:a6b721b2ef39380ca007f3f0a6e39d856"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac698df861712a8c2b4b006d7b3d8509f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac698df861712a8c2b4b006d7b3d8509f"></a>
size_type&#160;</td><td class="memItemRight" valign="bottom"><b>get_nearest_smaller_size</b> (size_type size) const </td></tr>
<tr class="separator:ac698df861712a8c2b4b006d7b3d8509f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename Size_Type = std::size_t&gt;<br/>
class __gnu_pbds::hash_exponential_size_policy&lt; Size_Type &gt;</h3>

<p>A size policy whose sequence of sizes form an exponential sequence (typically powers of 2. </p>

<p>Definition at line <a class="el" href="a01221_source.html#l00413">413</a> of file <a class="el" href="a01221_source.html">hash_policy.hpp</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="afaa82af641851bf662b2cf2f60ea1eb9"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Size_Type &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00339.html">__gnu_pbds::hash_exponential_size_policy</a>&lt; Size_Type &gt;::<a class="el" href="a00339.html">hash_exponential_size_policy</a> </td>
          <td>(</td>
          <td class="paramtype">size_type&#160;</td>
          <td class="paramname"><em>start_size</em> = <code>8</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_type&#160;</td>
          <td class="paramname"><em>grow_factor</em> = <code>2</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Default constructor, or onstructor taking a start_size, or constructor taking a start size and grow_factor. The policy will use the sequence of sizes start_size, start_size* grow_factor, start_size* grow_factor^2, ... </p>

<p>Definition at line <a class="el" href="a01221_source.html#l00044">44</a> of file <a class="el" href="a01221_source.html">hash_policy.hpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="a01221_source.html">hash_policy.hpp</a></li>
<li><a class="el" href="a01216_source.html">hash_exponential_size_policy_imp.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="a01598.html">__gnu_pbds</a></li><li class="navelem"><a class="el" href="a00339.html">hash_exponential_size_policy</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.3 </li>
  </ul>
</div>
</body>
</html>