aboutsummaryrefslogtreecommitdiff
path: root/cutl/compiler/context.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-09-06 12:52:53 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-09-06 12:52:53 +0200
commitcb9ea47e7825b5073d4d645afb94f6326cb7cf4d (patch)
tree201c215b08df918924153a60520046c294438a6b /cutl/compiler/context.cxx
Start the libcutl repository
Diffstat (limited to 'cutl/compiler/context.cxx')
-rw-r--r--cutl/compiler/context.cxx23
1 files changed, 23 insertions, 0 deletions
diff --git a/cutl/compiler/context.cxx b/cutl/compiler/context.cxx
new file mode 100644
index 0000000..da31d6e
--- /dev/null
+++ b/cutl/compiler/context.cxx
@@ -0,0 +1,23 @@
+// file : cutl/compiler/context.cxx
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : Copyright (c) 2009 Code Synthesis Tools CC
+// license : MIT; see accompanying LICENSE file
+
+#include <cutl/compiler/context.hxx>
+
+namespace cutl
+{
+ namespace compiler
+ {
+ void context::
+ remove (char const* key)
+ {
+ map::iterator i (map_.find (key));
+
+ if (i == map_.end ())
+ throw no_entry ();
+
+ map_.erase (i);
+ }
+ }
+}