summaryrefslogtreecommitdiff
path: root/TAO/CIAO/CCF/CCF/CompilerElements
diff options
context:
space:
mode:
authorboris <boris@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-08-03 15:54:33 +0000
committerboris <boris@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-08-03 15:54:33 +0000
commitfddbecfd3b565bc6ae590de4cdf20e8cd99d9cb8 (patch)
tree6cd68b53d6db6b10268a826bb78efd67191cb6a7 /TAO/CIAO/CCF/CCF/CompilerElements
parent6faca7a73dadbe06e0f998f14ebe5f93a1d96138 (diff)
downloadATCD-fddbecfd3b565bc6ae590de4cdf20e8cd99d9cb8.tar.gz
ChangeLogTag: Tue Aug 3 11:02:14 2004 Boris Kolpackov <boris@dre.vanderbilt.edu>
Diffstat (limited to 'TAO/CIAO/CCF/CCF/CompilerElements')
-rw-r--r--TAO/CIAO/CCF/CCF/CompilerElements/Context.hpp12
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_;