diff options
Diffstat (limited to 'build2/utility.ixx')
-rw-r--r-- | build2/utility.ixx | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/build2/utility.ixx b/build2/utility.ixx new file mode 100644 index 0000000..04ba9f5 --- /dev/null +++ b/build2/utility.ixx @@ -0,0 +1,27 @@ +// file : build2/utility.ixx -*- C++ -*- +// copyright : Copyright (c) 2014-2016 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +namespace build2 +{ + template <typename T> + inline void + append_options (cstrings& args, T& s, const char* var) + { + append_options (args, s[var]); + } + + template <typename T> + inline void + hash_options (sha256& csum, T& s, const char* var) + { + hash_options (csum, s[var]); + } + + template <typename T> + inline bool + find_option (const char* option, T& s, const char* var) + { + return find_option (option, s[var]); + } +} |