aboutsummaryrefslogtreecommitdiff
path: root/build/variable
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-12-14 10:12:23 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-12-14 10:12:23 +0200
commite649f2d988ce4e7a67aee1236850eb0b95a97d56 (patch)
treea1fe2ea19e24ba1d018fe08633f70be8489d607e /build/variable
parentde3f340fac96aca1e626068cbbb22ec92c1dc4b6 (diff)
Add support for variable prepend operator: =+
Diffstat (limited to 'build/variable')
-rw-r--r--build/variable6
1 files changed, 6 insertions, 0 deletions
diff --git a/build/variable b/build/variable
index 51d748d..799a35c 100644
--- a/build/variable
+++ b/build/variable
@@ -101,6 +101,9 @@ namespace build
value&
append (value, const variable&); // Aka operator+=().
+ value&
+ prepend (value, const variable&); // Aka operator=+().
+
// Forwarded to the representation type's assign()/append() (see below).
//
template <typename T> value& operator= (T);
@@ -138,6 +141,9 @@ namespace build
void
append (names, const variable&);
+ void
+ prepend (names, const variable&);
+
public:
// Don't use directly except in the implementation of representation
// types, in which case take care to update state.