unordered_map2.ch

Declarations

Public Only
Publicnamespace std
namespace std
Publicstruct unordered_map_node
struct unordered_map_node<Key, Value>
Publicstruct unordered_map
struct unordered_map<Key, Value>
Publicfunction hash_now
func hash_now(self : &unordered_map, key : &) : size_t
Publicfunction hash_with_capacity
func hash_with_capacity(self : &unordered_map, key : &) : size_t
Publicfunction compare_now
func compare_now(key : &, key2 : &) : bool
Publicfunction resize
func resize(self : &unordered_map) : void
Resize and rehash
Publicfunction make
func make() : unordered_map
Publicfunction delete
func delete(self : &unordered_map) : void
Publicfunction insert
func insert(self : &unordered_map, key : , value : ) : void
Insert or update a key-value pair
Publicfunction get_ptr
func get_ptr(self : &unordered_map, key : &) : *
Publicfunction find
func find(self : &unordered_map, key : &, value : &) : bool
Find a value by key
Publicfunction contains
func contains(self : &unordered_map, key : &) : bool
Publicfunction erase
func erase(self : &unordered_map, key : &) : bool
Remove a key-value pair
Publicfunction size
func size(self : &unordered_map) : size_t
Get the size of the map
Publicfunction empty
func empty(self : &unordered_map) : bool
check if the map is empty
Publicfunction isEmpty
func isEmpty(self : &unordered_map) : bool
Check if the map is empty
Publicfunction iterator
func iterator(self : &unordered_map) : unordered_map_iterator<, >
Publicstruct unordered_map_iterator
struct unordered_map_iterator<Key, Value>
Publicfunction key
func key(self : &unordered_map_iterator) : &
accessors
Publicfunction value
func value(self : &unordered_map_iterator) : &
Publicfunction valid
func valid(self : &unordered_map_iterator) : bool