aboutsummaryrefslogtreecommitdiff
path: root/build2/variable
diff options
context:
space:
mode:
Diffstat (limited to 'build2/variable')
-rw-r--r--build2/variable7
1 files changed, 7 insertions, 0 deletions
diff --git a/build2/variable b/build2/variable
index 1a52566..579339e 100644
--- a/build2/variable
+++ b/build2/variable
@@ -630,6 +630,13 @@ namespace build2
using variable_pool_base = std::unordered_set<variable>;
struct variable_pool: private variable_pool_base
{
+ template <typename T>
+ const variable&
+ find (string name, char p = '\0')
+ {
+ return find (name, nullptr, &value_traits<T>::value_type, p);
+ }
+
const variable&
find (string name, const build2::value_type* t = nullptr, char p = '\0')
{