Category : api-design

In a c++98 project I have a class Items that wraps a std::map: #include <string> #include <map> class Item { /* … */ }; // Some class holding some data class Items { public: typedef std::map<std::string,Item> container_type; typedef container_type::iterator iterator; Items() {} iterator find(const String& k) { return i_map.find(k); } iterator end() { return i_map.end(); ..

Read more