/**
* Gets the size of the hash table
* @return current size of the hash table
*/
size_t GetSize();
英语比较差,不知道这个是表达什么意思
1
kilasuelika 2020-10-28 09:54:18 +08:00 via Android ![]() 一般是 k-v 对
|
![]() |
2
mazyi 2020-10-28 10:08:21 +08:00 via iPhone
看源码
|
![]() |
4
Procumbens 2020-10-28 10:22:58 +08:00
C++
size(): Return container size - Returns the number of elements in the unordered_map container. Java size(): Returns the number of key-value mappings in this map. |
![]() |
5
icyalala 2020-10-28 10:50:45 +08:00 ![]() 一般来说 size 就是 k-v pair 的数量,capacity 指 bucket 数量。
|