Go to the documentation of this file.
38 int main(
int argc,
char *argv[])
43 table1.
insert(
"kjhk2", 12);
45 Info<<
"table1: " << table1 <<
nl
46 <<
"toc: " << table1.
toc() <<
endl;
54 Info<<
"table2: " << table2 <<
nl
55 <<
"toc: " << table2.
toc() <<
endl;
58 table3.transfer(table2);
60 Info<<
"table2: " << table2 <<
nl
61 <<
"toc: " << table2.
toc() <<
endl;
63 Info<<
"table3: " << table3 <<
nl
64 <<
"toc: " << table3.toc() <<
endl;
68 Info<<
"table3: " << table3 <<
nl
69 <<
"toc: " << table3.toc() <<
endl;
71 Info<<
"table4: " << table4 <<
nl
72 <<
"toc: " << table4.toc() <<
endl;
75 ptable1.insert(
"kjhkjh",
new label(10));
77 Info<<
"PtrTable toc: " << ptable1.toc() <<
endl;
List< Key > toc() const
Return the table of contents.
bool insert(const Key &, const T &newElmt)
Insert a new hashedEntry.
Ostream & endl(Ostream &os)
Add newline and flush stream.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
An STL-conforming hash table.
A HashTable specialization for hashing pointers.
int main(int argc, char *argv[])