aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/variable.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/variable.cxx')
-rw-r--r--libbuild2/variable.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/libbuild2/variable.cxx b/libbuild2/variable.cxx
index 917b9e7..efda63d 100644
--- a/libbuild2/variable.cxx
+++ b/libbuild2/variable.cxx
@@ -1759,6 +1759,14 @@ namespace build2
return pair<value&, bool> (r, p.second);
}
+ bool variable_map::
+ erase (const variable& var)
+ {
+ assert (!global_ || ctx->phase == run_phase::load);
+
+ return m_.erase (var) != 0;
+ }
+
// variable_type_map
//
lookup variable_type_map::