/**
* Gets the size of the hash table
* @return current size of the hash table
*/
size_t GetSize();
英语比较差,不知道这个是表达什么意思
/**
* Gets the size of the hash table
* @return current size of the hash table
*/
size_t GetSize();
英语比较差,不知道这个是表达什么意思
|
1
一般是 k-v 对
|
|
bigdogbigpigOct 28, 2020 via iPhone
2
看源码
|
|
ProcumbensOct 28, 2020
4
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
一般来说 size 就是 k-v pair 的数量,capacity 指 bucket 数量。
|
|
bigdogbigpigOct 28, 2020 via iPhone
6
@zxCoder 那就更好了,看别的语言的实现
|