Commit 4d67fb53 authored by Matthias Vallentin's avatar Matthias Vallentin

Bring back lost meta function

parent e7c9dcf5
...@@ -511,6 +511,11 @@ struct tl_exists { ...@@ -511,6 +511,11 @@ struct tl_exists {
Pred<tl_head_t<List>>::value || tl_exists<tl_tail_t<List>, Pred>::value; Pred<tl_head_t<List>>::value || tl_exists<tl_tail_t<List>, Pred>::value;
}; };
template <template <class> class Pred>
struct tl_exists<empty_type_list, Pred> {
static constexpr bool value = false;
};
// Uncomment after having switched to C++14 // Uncomment after having switched to C++14
//template <class List, template <class> class Pred> //template <class List, template <class> class Pred>
//inline constexpr bool tl_exists_v = tl_exists<List, Pred>::value; //inline constexpr bool tl_exists_v = tl_exists<List, Pred>::value;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment