<!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.5"/> <title>libstdc++: __gnu_pbds::quadratic_probe_fn< Size_Type > 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.5 --> </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('a00373.html','');}); </script> <div id="doc-content"> <div class="header"> <div class="summary"> <a href="#pub-types">Public Types</a> | <a href="#pub-methods">Public Member Functions</a> | <a href="#pro-methods">Protected Member Functions</a> | <a href="a02433.html">List of all members</a> </div> <div class="headertitle"> <div class="title">__gnu_pbds::quadratic_probe_fn< Size_Type > 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:a80677b80fba8e537a76cefc11ca771a8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a80677b80fba8e537a76cefc11ca771a8"></a> typedef Size_Type </td><td class="memItemRight" valign="bottom"><b>size_type</b></td></tr> <tr class="separator:a80677b80fba8e537a76cefc11ca771a8"><td class="memSeparator" colspan="2"> </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:afe925d019aa2025893862910eb8ca92b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afe925d019aa2025893862910eb8ca92b"></a> void </td><td class="memItemRight" valign="bottom"><b>swap</b> (<a class="el" href="a00373.html">quadratic_probe_fn</a>< Size_Type > &other)</td></tr> <tr class="separator:afe925d019aa2025893862910eb8ca92b"><td class="memSeparator" colspan="2"> </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:a8af0888b807bd4d796b18d4de1570370"><td class="memItemLeft" align="right" valign="top">size_type </td><td class="memItemRight" valign="bottom"><a class="el" href="a00373.html#a8af0888b807bd4d796b18d4de1570370">operator()</a> (size_type i) const </td></tr> <tr class="separator:a8af0888b807bd4d796b18d4de1570370"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><h3>template<typename Size_Type = std::size_t><br/> class __gnu_pbds::quadratic_probe_fn< Size_Type ></h3> <p>A probe sequence policy using square increments. </p> <p>Definition at line <a class="el" href="a01276_source.html#l00085">85</a> of file <a class="el" href="a01276_source.html">hash_policy.hpp</a>.</p> </div><h2 class="groupheader">Member Function Documentation</h2> <a class="anchor" id="a8af0888b807bd4d796b18d4de1570370"></a> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<typename Size_Type > </div> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="a00373.html">quadratic_probe_fn</a>< Size_Type >::size_type <a class="el" href="a00373.html">__gnu_pbds::quadratic_probe_fn</a>< Size_Type >::operator() </td> <td>(</td> <td class="paramtype">size_type </td> <td class="paramname"><em>i</em></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Returns the i-th offset from the hash value. </p> <p>Definition at line <a class="el" href="a01276_source.html#l00051">51</a> of file <a class="el" href="a01276_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="a01276_source.html">hash_policy.hpp</a></li> <li><a class="el" href="a01445_source.html">quadratic_probe_fn_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="a01656.html">__gnu_pbds</a></li><li class="navelem"><a class="el" href="a00373.html">quadratic_probe_fn</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.5 </li> </ul> </div> </body> </html>