aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include/StatusParagraphs.h
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-04-07 14:42:19 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-04-07 15:45:13 -0700
commitc91ac99d4a29fceb70150f2a00a03da1e16751da (patch)
tree4f74a077a6b3ed54098769f6e4d03354def998b1 /toolsrc/include/StatusParagraphs.h
parentad24821dce97926e8eba995f4c18feaeea247b77 (diff)
downloadvcpkg-c91ac99d4a29fceb70150f2a00a03da1e16751da.tar.gz
vcpkg-c91ac99d4a29fceb70150f2a00a03da1e16751da.zip
Add find_installed() overload
Diffstat (limited to 'toolsrc/include/StatusParagraphs.h')
-rw-r--r--toolsrc/include/StatusParagraphs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/toolsrc/include/StatusParagraphs.h b/toolsrc/include/StatusParagraphs.h
index cdf6b8e8e..82d2a0d1f 100644
--- a/toolsrc/include/StatusParagraphs.h
+++ b/toolsrc/include/StatusParagraphs.h
@@ -20,6 +20,11 @@ namespace vcpkg
}
const_iterator find(const std::string& name, const Triplet& target_triplet) const;
iterator find(const std::string& name, const Triplet& target_triplet);
+
+ const_iterator find_installed(const PackageSpec& spec) const
+ {
+ return find_installed(spec.name(), spec.target_triplet());
+ }
const_iterator find_installed(const std::string& name, const Triplet& target_triplet) const;
iterator insert(std::unique_ptr<StatusParagraph>);