<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.15"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>libstdc++: std::__detail::_Hashtable_traits< _Cache_hash_code, _Constant_iterators, _Unique_keys > Struct 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="navtreedata.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(initResizable); /* @license-end */</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 id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">libstdc++ </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.15 --> </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"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(function(){initNavTree('a05615.html','');}); /* @license-end */ </script> <div id="doc-content"> <div class="header"> <div class="summary"> <a href="#pub-types">Public Types</a> | <a href="a05612.html">List of all members</a> </div> <div class="headertitle"> <div class="title">std::__detail::_Hashtable_traits< _Cache_hash_code, _Constant_iterators, _Unique_keys > Struct Template Reference<div class="ingroups"><a class="el" href="a01463.html">Containers</a> » <a class="el" href="a01466.html">Unordered Associative</a> » <a class="el" href="a01491.html">Base and Implementation Classes</a></div></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:a24f70b8d430a6c918e23f85882b8e4e9"><td class="memItemLeft" align="right" valign="top"><a id="a24f70b8d430a6c918e23f85882b8e4e9"></a> using </td><td class="memItemRight" valign="bottom"><b>__constant_iterators</b> = <a class="el" href="a03043.html">__bool_constant</a>< _Constant_iterators ></td></tr> <tr class="separator:a24f70b8d430a6c918e23f85882b8e4e9"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a07c04e7b21c42bc977303069eb36e2d5"><td class="memItemLeft" align="right" valign="top"><a id="a07c04e7b21c42bc977303069eb36e2d5"></a> using </td><td class="memItemRight" valign="bottom"><b>__hash_cached</b> = <a class="el" href="a03043.html">__bool_constant</a>< _Cache_hash_code ></td></tr> <tr class="separator:a07c04e7b21c42bc977303069eb36e2d5"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a339f950a8cd2cefd47d2f6ddf761ffe1"><td class="memItemLeft" align="right" valign="top"><a id="a339f950a8cd2cefd47d2f6ddf761ffe1"></a> using </td><td class="memItemRight" valign="bottom"><b>__unique_keys</b> = <a class="el" href="a03043.html">__bool_constant</a>< _Unique_keys ></td></tr> <tr class="separator:a339f950a8cd2cefd47d2f6ddf761ffe1"><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<bool _Cache_hash_code, bool _Constant_iterators, bool _Unique_keys><br /> struct std::__detail::_Hashtable_traits< _Cache_hash_code, _Constant_iterators, _Unique_keys ></h3> <p>struct _Hashtable_traits</p> <p>Important traits for hash tables.</p> <dl class="tparams"><dt>Template Parameters</dt><dd> <table class="tparams"> <tr><td class="paramname">_Cache_hash_code</td><td>Boolean value. True if the value of the hash function is stored along with the value. This is a time-space tradeoff. Storing it may improve lookup speed by reducing the number of times we need to call the _Equal function.</td></tr> <tr><td class="paramname">_Constant_iterators</td><td>Boolean value. True if iterator and const_iterator are both constant iterator types. This is true for unordered_set and unordered_multiset, false for unordered_map and unordered_multimap.</td></tr> <tr><td class="paramname">_Unique_keys</td><td>Boolean value. True if the return value of _Hashtable::count(k) is always at most one, false if it may be an arbitrary number. This is true for unordered_set and unordered_map, false for unordered_multiset and unordered_multimap. </td></tr> </table> </dd> </dl> <p class="definition">Definition at line <a class="el" href="a00374_source.html#l00200">200</a> of file <a class="el" href="a00374_source.html">hashtable_policy.h</a>.</p> </div><hr/>The documentation for this struct was generated from the following file:<ul> <li><a class="el" href="a00374_source.html">hashtable_policy.h</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="a01541.html">std</a></li><li class="navelem"><a class="el" href="a01542.html">__detail</a></li><li class="navelem"><a class="el" href="a05615.html">_Hashtable_traits</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.15 </li> </ul> </div> </body> </html>