aboutsummaryrefslogtreecommitdiff
path: root/paludis/choice.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/choice.cc')
-rw-r--r--paludis/choice.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/paludis/choice.cc b/paludis/choice.cc
index 25a92b51a..4fb15932f 100644
--- a/paludis/choice.cc
+++ b/paludis/choice.cc
@@ -182,6 +182,16 @@ Choices::end() const
return ConstIterator(_imp->choices.end());
}
+Choices::ConstIterator
+Choices::find(const ChoicePrefixName & p) const
+{
+ for (ConstIterator i(begin()), i_end(end()) ;
+ i != i_end ; ++i)
+ if ((*i)->prefix() == p)
+ return i;
+ return end();
+}
+
const std::tr1::shared_ptr<const ChoiceValue>
Choices::find_by_name_with_prefix(const ChoiceNameWithPrefix & f) const
{