aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/variable.txx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2024-02-06 05:05:56 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2024-02-06 05:05:56 +0200
commita5acaba537dab8e06be1197916acff86699aa5a3 (patch)
tree3f34f1d3889f17937b170a032ebd60338cd71ae1 /libbuild2/variable.txx
parent5b21820a4ad0f69290c6a20643640ff5fbf5021a (diff)
Add support for value type-specific subscript and iteration
Diffstat (limited to 'libbuild2/variable.txx')
-rw-r--r--libbuild2/variable.txx12
1 files changed, 9 insertions, 3 deletions
diff --git a/libbuild2/variable.txx b/libbuild2/variable.txx
index 2c1265a..bc4132f 100644
--- a/libbuild2/variable.txx
+++ b/libbuild2/variable.txx
@@ -664,7 +664,9 @@ namespace build2
&vector_reverse<T>,
nullptr, // No cast (cast data_ directly).
&vector_compare<T>,
- &default_empty<vector<T>>
+ &default_empty<vector<T>>,
+ nullptr, // Subscript.
+ nullptr // Iterate.
};
// vector<pair<K, V>> value
@@ -817,7 +819,9 @@ namespace build2
&pair_vector_reverse<K, V>,
nullptr, // No cast (cast data_ directly).
&pair_vector_compare<K, V>,
- &default_empty<vector<pair<K, V>>>
+ &default_empty<vector<pair<K, V>>>,
+ nullptr, // Subscript.
+ nullptr // Iterate.
};
// map<K, V> value
@@ -998,7 +1002,9 @@ namespace build2
&map_reverse<K, V>,
nullptr, // No cast (cast data_ directly).
&map_compare<K, V>,
- &default_empty<map<K, V>>
+ &default_empty<map<K, V>>,
+ nullptr, // Subscript.
+ nullptr // Iterate.
};
// variable_cache