
25 Nov
2011
25 Nov
'11
9:07 p.m.
Hi all. Is it a correct usage of default constructor of iterators? Are any gurantees that it will always equals to the iterator returned by end()? : typedef boost::unordered_map<std::string, int> map; map x; x["one"] = 1; assert(x.find("missing") == x.end()); assert(x.find("missing") == map::iterator()); assert(map::iterator() == x.end()); Andrey