aboutsummaryrefslogtreecommitdiff
path: root/build/target.ixx
diff options
context:
space:
mode:
Diffstat (limited to 'build/target.ixx')
-rw-r--r--build/target.ixx13
1 files changed, 13 insertions, 0 deletions
diff --git a/build/target.ixx b/build/target.ixx
new file mode 100644
index 0000000..02bdc69
--- /dev/null
+++ b/build/target.ixx
@@ -0,0 +1,13 @@
+// file : build/target.ixx -*- C++ -*-
+// copyright : Copyright (c) 2014-2015 Code Synthesis Tools CC
+// license : MIT; see accompanying LICENSE file
+
+namespace build
+{
+ inline bool prerequisite_target::
+ belongs (const target_type& t) const
+ {
+ const auto& p (t.prerequisites);
+ return !(p.empty () || this < &p.front () || this > &p.back ());
+ }
+}