const std::string& get_descr(iterator& it) const
{ return it->second->description; }
- size_t size() const { return assoc.size(); }
+ bool exists(const std::string& name) const
+ { return assoc.find(name) != assoc.end(); }
iterator begin() const { return assoc.begin(); }
iterator end() const { return assoc.end(); }
//===== arity 2 =====
-#include <map>
-#include <string>
-
template <typename Base, typename Arg1, typename Arg2>
class named_object_list2 {
protected:
//===================
-#define THIS_INSERT(name, descr, class) insert(name, new creator<class>(descr))
+#define NOL_INSERT(name, descr, class) insert(name, new creator<class>(descr))
#endif // !NAMED_OBJECT_LIST_H