aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-06-14 19:07:21 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-06-14 19:07:21 +0100
commit3fec8404901a7b82928f4931a57af232417a1b99 (patch)
tree17278a171624651b1402abc90f4726b1df432881
parentb0448cfbd14b19ca660caa9cb3422de4004dac96 (diff)
downloadpaludis-3fec8404901a7b82928f4931a57af232417a1b99.tar.gz
paludis-3fec8404901a7b82928f4931a57af232417a1b99.tar.xz
Decisions<>::empty
-rw-r--r--paludis/resolver/decisions.cc7
-rw-r--r--paludis/resolver/decisions.hh2
2 files changed, 9 insertions, 0 deletions
diff --git a/paludis/resolver/decisions.cc b/paludis/resolver/decisions.cc
index 1c11f6b..7903282 100644
--- a/paludis/resolver/decisions.cc
+++ b/paludis/resolver/decisions.cc
@@ -91,6 +91,13 @@ Decisions<Decision_>::end() const
return ConstIterator(_imp->values.end());
}
+template <typename Decision_>
+bool
+Decisions<Decision_>::empty() const
+{
+ return _imp->values.empty();
+}
+
template class Decisions<UnableToMakeDecision>;
template class Decisions<ChangesToMakeDecision>;
template class Decisions<ChangeOrRemoveDecision>;
diff --git a/paludis/resolver/decisions.hh b/paludis/resolver/decisions.hh
index 039cd26..570e8ff 100644
--- a/paludis/resolver/decisions.hh
+++ b/paludis/resolver/decisions.hh
@@ -50,6 +50,8 @@ namespace paludis
typedef WrappedForwardIterator<ConstIteratorTag, const std::tr1::shared_ptr<const Decision_> > ConstIterator;
ConstIterator begin() const PALUDIS_ATTRIBUTE((warn_unused_result));
ConstIterator end() const PALUDIS_ATTRIBUTE((warn_unused_result));
+
+ bool empty() const PALUDIS_ATTRIBUTE((warn_unused_result));
};
extern template class Decisions<UnableToMakeDecision>;