Go to the documentation of this file.
36 int main(
int argc,
char *argv[])
47 tableA.
insert(
"value1", 1);
48 tableA.
insert(
"value2", 2);
49 tableA.
insert(
"value3", 3);
64 Info<<
"create from HashSet: ";
66 Info<<
"create from HashTable<T>: ";
68 Info<<
"create from HashTable<nil>: ";
71 Info<<
"create from Map<label>: ";
74 Info<<
"combined toc: "
100 Info<<
"setB == setC: " << (setB == setC) <<
endl;
101 Info<<
"setC != setD: " << (setC != setD) <<
endl;
105 Info<<
"setB += setC : " << setB <<
endl;
108 Info<<
"setB &= setD : " << setB <<
endl;
113 Info<<
"setB ^ setC ^ setD : " << (setB ^ setC ^ setD) <<
endl;
145 someLst[elemI] = elemI*elemI;
149 Info<<
"added " << added <<
" from " << someLst.
size() <<
endl;
int main(int argc, char *argv[])
#define forAll(list, i)
Loop across all elements in list.
bool insert(const Key &, const T &newElmt)
Insert a new hashedEntry.
A zero-sized class without any storage. Used, for example, in HashSet.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A HashTable with keys but without contents.
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.
bool insert(const Key &key)
Insert a new entry.
HashSet wordHashSet
A HashSet with word keys.
void size(const label)
Override size to be inconsistent with allocated storage.
HashSet< label, Hash< label > > labelHashSet
A HashSet with label keys.
bool set(const Key &key)
Same as insert (cannot overwrite nil content)