From db7e1b06b808094396bd101cd94f6d870dfee3f0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 15 Apr 2010 11:37:37 +0200 Subject: Add swap() to compiler::context --- cutl/compiler/context.hxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cutl/compiler/context.hxx') 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&); -- cgit v1.1