aboutsummaryrefslogtreecommitdiff
path: root/cutl/compiler/context.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cutl/compiler/context.cxx')
-rw-r--r--cutl/compiler/context.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/cutl/compiler/context.cxx b/cutl/compiler/context.cxx
index 7961388..9623588 100644
--- a/cutl/compiler/context.cxx
+++ b/cutl/compiler/context.cxx
@@ -19,5 +19,16 @@ namespace cutl
map_.erase (i);
}
+
+ std::type_info const& context::
+ type_info (std::string const& key) const
+ {
+ map::const_iterator i (map_.find (key));
+
+ if (i == map_.end ())
+ throw no_entry ();
+
+ return i->second.type_info ();
+ }
}
}