X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/c4e7c13743a9d1e8dfa5dc27d4b2fa3aaf1557ab..5851cba291d6ac7b89baf771e4a3821cc1aaa81c:/named_object_list.h?ds=inline diff --git a/named_object_list.h b/named_object_list.h index 03bf00d..2c91263 100644 --- a/named_object_list.h +++ b/named_object_list.h @@ -65,7 +65,8 @@ public: 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(); } @@ -73,9 +74,6 @@ public: //===== arity 2 ===== -#include -#include - template class named_object_list2 { protected: