aboutsummaryrefslogtreecommitdiff
path: root/build/target.ixx
blob: 02bdc69fca3f67afd2a80a649a771263e8c3fa0b (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_target::
  belongs (const target_type& t) const
  {
    const auto& p (t.prerequisites);
    return !(p.empty () || this < &p.front () || this > &p.back ());
  }
}