aboutsummaryrefslogtreecommitdiff
path: root/build/variable
diff options
context:
space:
mode:
Diffstat (limited to 'build/variable')
-rw-r--r--build/variable12
1 files changed, 12 insertions, 0 deletions
diff --git a/build/variable b/build/variable
index 901f5c8..dfdcaff 100644
--- a/build/variable
+++ b/build/variable
@@ -217,6 +217,18 @@ namespace build
return value_proxy (&base::operator[] (v), &scope_);
}
+ std::pair<iterator, iterator>
+ find_namespace (const std::string& ns)
+ {
+ return find_prefix (variable_pool.find (ns));
+ }
+
+ std::pair<const_iterator, const_iterator>
+ find_namespace (const std::string& ns) const
+ {
+ return find_prefix (variable_pool.find (ns));
+ }
+
explicit
variable_map (scope& s): scope_ (s) {}