aboutsummaryrefslogtreecommitdiff
path: root/build2/algorithm
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-02-12 16:10:48 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-02-12 16:10:48 +0200
commit4e665067ff264c55086fdfb776a95b0fbb4d432c (patch)
tree2371403561c0a3d754792f68d2515cae71dff565 /build2/algorithm
parent00ed965e4a29f66666d2bf4372d2d6919c29664e (diff)
<types>/<utility> scheme cleanup
Diffstat (limited to 'build2/algorithm')
-rw-r--r--build2/algorithm15
1 files changed, 7 insertions, 8 deletions
diff --git a/build2/algorithm b/build2/algorithm
index 33c60ba..f0f2fbf 100644
--- a/build2/algorithm
+++ b/build2/algorithm
@@ -5,10 +5,9 @@
#ifndef BUILD2_ALGORITHM
#define BUILD2_ALGORITHM
-#include <string>
-#include <utility> // pair
-
#include <build2/types>
+#include <build2/utility>
+
#include <build2/target>
#include <build2/operation>
@@ -43,8 +42,8 @@ namespace build2
target&
search (const target_type& type,
const dir_path& dir,
- const std::string& name,
- const std::string* ext,
+ const string& name,
+ const string* ext,
scope*);
// As above but specify the target type as template argument.
@@ -52,8 +51,8 @@ namespace build2
template <typename T>
T&
search (const dir_path& dir,
- const std::string& name,
- const std::string* ext,
+ const string& name,
+ const string* ext,
scope*);
// Search for a target identified by the name. The semantics
@@ -91,7 +90,7 @@ namespace build2
// that unlike match(), this call doesn't increment the
// dependents count. See also the companion execute_delegate().
//
- std::pair<recipe, action>
+ pair<recipe, action>
match_delegate (action, target&);
// The standard prerequisite search and match implementations. They call