{"id":180054,"date":"2020-10-27T13:07:18","date_gmt":"2020-10-27T05:07:18","guid":{"rendered":"http:\/\/4563.org\/?p=180054"},"modified":"2020-10-27T13:07:18","modified_gmt":"2020-10-27T05:07:18","slug":"%e5%93%88%e5%b8%8c%e8%a1%a8%e7%9a%84-size-%e6%98%af%e6%8c%87%e6%a1%b6bucket%e7%9a%84%e6%95%b0%e9%87%8f%e8%bf%98%e6%98%af-k-v-%e5%af%b9%e7%9a%84%e6%95%b0%e9%87%8f%e5%91%a2%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=180054","title":{"rendered":"\u54c8\u5e0c\u8868\u7684 size \u662f\u6307\u6876(bucket)\u7684\u6570\u91cf\u8fd8\u662f k-v \u5bf9\u7684\u6570\u91cf\u5462\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u54c8\u5e0c\u8868\u7684 size \u662f\u6307\u6876(bucket)\u7684\u6570\u91cf\u8fd8\u662f k-v \u5bf9\u7684\u6570\u91cf\u5462\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zxCoder <\/span>  <span><i><\/i> 1<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<pre><code> \/**          * Gets the size of the hash table          * @return current size of the hash table          *\/         size_t GetSize(); <\/code><\/pre>\n<p>\u82f1\u8bed\u6bd4\u8f83\u5dee\uff0c\u4e0d\u77e5\u9053\u8fd9\u4e2a\u662f\u8868\u8fbe\u4ec0\u4e48\u610f\u601d<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>6<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3939163\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : kilasuelika <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e00\u822c\u662f k-v \u5bf9                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3939164\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mazyi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u770b\u6e90\u7801                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3939165\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zxCoder <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mazyi hhh \u8fd9\u662f\u4e00\u4e2a project\uff0c\u6e90\u7801\u8981\u6211\u81ea\u5df1\u5199                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3939166\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Procumbens <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             C++<br \/>size(): Return container size &#8211; Returns the number of elements in the unordered_map container.<\/p>\n<p>Java<br \/>size(): Returns the number of key-value mappings in this map.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3939167\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : icyalala <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e00\u822c\u6765\u8bf4 size \u5c31\u662f k-v pair \u7684\u6570\u91cf\uff0ccapacity \u6307 bucket \u6570\u91cf\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3939168\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mazyi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @zxCoder \u90a3\u5c31\u66f4\u597d\u4e86\uff0c\u770b\u522b\u7684\u8bed\u8a00\u7684\u5b9e\u73b0                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u54c8\u5e0c\u8868\u7684 size \u662f\u6307\u6876(buc&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/180054"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=180054"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/180054\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=180054"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=180054"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=180054"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}