aboutsummaryrefslogtreecommitdiff
path: root/frontend/util.h
blob: a32e4c972f7814f333a47e64c7baecd84f84f7cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include <string>

#include "backend/ListIterator.h"

struct by_name_case_insensitive {
	by_name_case_insensitive(const std::string & target_name) : target_name(target_name) {}
	std::string target_name;

	template <typename T>
	bool operator () (T * object);
};

template <typename T, class Predicate>
ListIterator<T> find_if_range(ListRange<T>, Predicate);

#include "util.hpp"