diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-11-22 06:33:53 +0100 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-11-22 06:33:53 +0100 |
commit | 820d81b9a5392951c18daa5a47d6c0ffd28baa9b (patch) | |
tree | dab20f1ff49ab76cdcd511e189799f4d6e40677e /src/common | |
parent | svc: Implement yield types 0 and -1 (diff) | |
download | yuzu-820d81b9a5392951c18daa5a47d6c0ffd28baa9b.tar yuzu-820d81b9a5392951c18daa5a47d6c0ffd28baa9b.tar.gz yuzu-820d81b9a5392951c18daa5a47d6c0ffd28baa9b.tar.bz2 yuzu-820d81b9a5392951c18daa5a47d6c0ffd28baa9b.tar.lz yuzu-820d81b9a5392951c18daa5a47d6c0ffd28baa9b.tar.xz yuzu-820d81b9a5392951c18daa5a47d6c0ffd28baa9b.tar.zst yuzu-820d81b9a5392951c18daa5a47d6c0ffd28baa9b.zip |
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/thread_queue_list.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/thread_queue_list.h b/src/common/thread_queue_list.h index 323eab97c..e7594db68 100644 --- a/src/common/thread_queue_list.h +++ b/src/common/thread_queue_list.h @@ -6,7 +6,6 @@ #include <array> #include <deque> -#include <functional> #include <boost/range/algorithm_ext/erase.hpp> namespace Common { @@ -50,7 +49,8 @@ struct ThreadQueueList { return T(); } - T get_first_filter(std::function<bool(T)> filter) const { + template <typename UnaryPredicate> + T get_first_filter(UnaryPredicate filter) const { const Queue* cur = first; while (cur != nullptr) { if (!cur->data.empty()) { |