api
unordered_map2.ch
Declarations in unordered_map2.ch
1 declarationsstd
Declarations
Public only
std#
Publicnamespace
namespace std
unordered_map_node#
Publicstruct
struct unordered_map_node<Key, Value> {
var key : Key
var value : Value
var next : *unordered_map_node<Key, Value>
}
unordered_map#
Publicstruct
struct unordered_map<Key, Value> {
var table : **unordered_map_node<Key, Value>
var capacity : size_t
var _size : size_t
}
hash_now#
Publicfunction
func hash_now(self : &unordered_map, key : &Key) : size_t
hash_with_capacity#
Publicfunction
func hash_with_capacity(self : &unordered_map, key : &Key) : size_t
compare_now#
Publicfunction
func compare_now(key : &Key, key2 : &Key) : bool
make#
PublicfunctionConstructor
func make() : unordered_map
delete#
Publicfunction
func delete(self : &unordered_map) : void
insert#
Publicfunction
Insert or update a key-value pair
get_ptr#
Publicfunction
find#
Publicfunction
Find a value by key
contains#
Publicfunction
func contains(self : &unordered_map, key : &Key) : bool
iterator#
Publicfunction
unordered_map_iterator#
Publicstruct
struct unordered_map_iterator<Key, Value> {
var map : *unordered_map<Key, Value>
var bucket : size_t
var node : *unordered_map_node<Key, Value>
}
next#
Publicfunction
func next(self : &unordered_map_iterator) : void
value#
Publicfunction
valid#
Publicfunction
func valid(self : &unordered_map_iterator) : bool
size#
Publicfunction
func size(self : &unordered_map_iterator) : size_t