aboutsummaryrefslogtreecommitdiff
path: root/build/target.ixx
blob: 837769eeff5247c672f7f0745e3f788f7d20b8e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// file      : build/target.ixx -*- C++ -*-
// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd
// license   : MIT; see accompanying LICENSE file

namespace build
{
  inline bool prerequisite_ref::
  belongs (const target& t) const
  {
    const auto& p (t.prerequisites);
    return !(p.empty () || this < &p.front () || this > &p.back ());
  }
}