[svn] commit: r217 - /experiments/jelte-configuration/data.h

BIND 10 source code commits bind10-changes at lists.isc.org
Fri Oct 30 01:15:37 UTC 2009


Author: jelte
Date: Fri Oct 30 01:15:36 2009
New Revision: 217

Log:
implement MapElement::remove()

Modified:
    experiments/jelte-configuration/data.h

Modified: experiments/jelte-configuration/data.h
==============================================================================
--- experiments/jelte-configuration/data.h (original)
+++ experiments/jelte-configuration/data.h Fri Oct 30 01:15:36 2009
@@ -213,6 +213,7 @@
         bool set_value(std::map<std::string, ElementPtr>& v) { m = v; return true; };
         ElementPtr get(const std::string& s) { return m[s]; };
         void set(const std::string& s, ElementPtr p) { m[s] = p; };
+        void remove(const std::string& s) { m.erase(s); }
         std::string str();
         std::string str_xml(size_t prefix = 0);
         std::string to_wire(int omit_length = 1);




More information about the bind10-changes mailing list