aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-02-27 16:14:36 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2017-02-27 16:14:36 -0800
commit54859c0f1f201dfcc78e783c77c3b477d0c86c92 (patch)
tree6723e6c34f27ed98c41fd14fce4275de92f473ea /toolsrc/include
parentb7bd8c3251dcb9ecf3f6c0201c2a513596ab09b1 (diff)
downloadvcpkg-54859c0f1f201dfcc78e783c77c3b477d0c86c92.tar.gz
vcpkg-54859c0f1f201dfcc78e783c77c3b477d0c86c92.zip
Introduce extract_port_names_and_versions()
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/Paragraphs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/toolsrc/include/Paragraphs.h b/toolsrc/include/Paragraphs.h
index 9564d2290..79b66a67f 100644
--- a/toolsrc/include/Paragraphs.h
+++ b/toolsrc/include/Paragraphs.h
@@ -1,7 +1,7 @@
#pragma once
#include "filesystem_fs.h"
-#include <unordered_map>
+#include <map>
#include "expected.h"
#include "BinaryParagraph.h"
#include "vcpkg_paths.h"
@@ -16,4 +16,6 @@ namespace vcpkg::Paragraphs
expected<BinaryParagraph> try_load_cached_package(const vcpkg_paths& paths, const package_spec& spec);
std::vector<SourceParagraph> load_all_ports(const fs::path& ports_dir);
+
+ std::map<std::string, std::string> extract_port_names_and_versions(const std::vector<SourceParagraph>& source_paragraphs);
}