3 #include "dictionary-iter.hh"
9 Dictionary<String> *dict = new Dictionary<String>;
13 dict->elem("foo") = "bar";
14 dict->elem("bla") = "ba";
15 dict->elem("blo") = "bar";
21 int l = str.length_i ();
23 dict->elem (str.left_str (l/2)) = str.right_str (l/2);
29 Dictionary<String> *dict2=new Dictionary<String> (*dict);
34 for (Dictionary_iter<String> i (*dict); i.ok (); i++)
36 cout << i.key () << " == " << i.val () << endl;
37 cout << "elem_b: " << dict->elem_b (i.key ()) << ", key " << i.key () << " val " << dict->elem (i.key ()) <<endl;