diff options
Diffstat (limited to 'TAO/CIAO/CCF/CCF/CompilerElements')
-rw-r--r-- | TAO/CIAO/CCF/CCF/CompilerElements/Context.hpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/TAO/CIAO/CCF/CCF/CompilerElements/Context.hpp b/TAO/CIAO/CCF/CCF/CompilerElements/Context.hpp index 02a2145c429..fe799e32b48 100644 --- a/TAO/CIAO/CCF/CCF/CompilerElements/Context.hpp +++ b/TAO/CIAO/CCF/CCF/CompilerElements/Context.hpp @@ -31,7 +31,7 @@ namespace CCF Map::size_type count (char const* key) const throw () { - return map_.count (key) != 0; + return map_.count (key); } template <typename T> @@ -88,6 +88,16 @@ namespace CCF } } + void + remove (char const* key) throw (NotFound) + { + Map::iterator i (map_.find (key)); + + if (i == map_.end ()) throw NotFound (); + + map_.erase (i); + } + private: Map map_; |