blob: 7b330f31c7829356083d5e591149731e1143be6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#pragma once
#include "vcpkg_Checks.h"
#include <unordered_set>
namespace vcpkg { namespace Sets
{
template <typename T, typename Container>
void remove_all(std::unordered_set<T>* input_set, Container remove_these)
{
Checks::check_throw(input_set != nullptr, "Input set cannot be null");
for (const T& r : remove_these)
{
input_set->erase(r);
}
}
}}
|