mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-24 19:43:33 +01:00
19 lines
410 B
C
19 lines
410 B
C
![]() |
#pragma once
|
||
|
|
||
|
#include <unordered_map>
|
||
|
#include <unordered_set>
|
||
|
|
||
|
namespace vcpkg { namespace Maps
|
||
|
{
|
||
|
template <typename K, typename V>
|
||
|
std::unordered_set<K> extract_key_set(const std::unordered_map<K, V>& input_map)
|
||
|
{
|
||
|
std::unordered_set<K> key_set;
|
||
|
for (auto const& element : input_map)
|
||
|
{
|
||
|
key_set.insert(element.first);
|
||
|
}
|
||
|
return key_set;
|
||
|
}
|
||
|
}}
|