10 inline bool isWhitelisted(
const std::string& name,
const std::vector<std::regex>& regexPatterns) {
11 return std::find_if(regexPatterns.begin(), regexPatterns.end(), [name](
const auto& regex) {
12 return std::regex_match(name, regex);
13 }) != regexPatterns.end();
bool isWhitelisted(const std::string &name, const std::vector< std::regex > ®exPatterns)