aboutsummaryrefslogtreecommitdiff
path: root/build/target.ixx
blob: 45a8c69ea18d820b7865910ff07d7eb1317e0e35 (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 Tools CC
// 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 ());
  }
}