aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-04-15 11:37:37 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-04-15 11:37:37 +0200
commitdb7e1b06b808094396bd101cd94f6d870dfee3f0 (patch)
tree0e8aab891cba9ab9ca42aa0bc6d1307f084cd5fd
parent451823c22d77ae57160316837621b0501a3629f9 (diff)
Add swap() to compiler::context
-rw-r--r--cutl/compiler/context.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/cutl/compiler/context.hxx b/cutl/compiler/context.hxx
index e603f97..32f301f 100644
--- a/cutl/compiler/context.hxx
+++ b/cutl/compiler/context.hxx
@@ -26,6 +26,12 @@ namespace cutl
public:
context () {}
+ void
+ swap (context& c)
+ {
+ map_.swap (c.map_);
+ }
+
private:
context (context const&);