aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/variable.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-06-03 10:41:00 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-06-03 10:41:00 +0200
commit88b0aed33748ba4a3b3635063999cbf98a434672 (patch)
tree87083c7c1e006f1166f301e1e7f5a198b79258e7 /libbuild2/variable.hxx
parent776f59bc572ad1d6e00b9e72bbed595c74757abe (diff)
Add another variable_map::insert() overload
Diffstat (limited to 'libbuild2/variable.hxx')
-rw-r--r--libbuild2/variable.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/libbuild2/variable.hxx b/libbuild2/variable.hxx
index ae3c9ab..d00243e 100644
--- a/libbuild2/variable.hxx
+++ b/libbuild2/variable.hxx
@@ -1276,6 +1276,12 @@ namespace build2
}
const variable&
+ insert (string name, const value_type* type)
+ {
+ return insert (move (name), type, nullptr, nullptr).first;
+ }
+
+ const variable&
insert (string name,
const value_type* type,
bool overridable,