]> AND Private Git Repository - loba.git/blobdiff - named_object_list.h
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
Add automatic topology generators.
[loba.git] / named_object_list.h
index 03bf00d024a3f267465d3dae4151b5aa28b7551c..ae7229dcdef8c91c218961277a7e7151ca24cb3b 100644 (file)
@@ -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();   }