diff options
Diffstat (limited to 'src/list/operation/higher/filter.h')
-rw-r--r-- | src/list/operation/higher/filter.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/list/operation/higher/filter.h b/src/list/operation/higher/filter.h index d91735e..3fc08ee 100644 --- a/src/list/operation/higher/filter.h +++ b/src/list/operation/higher/filter.h @@ -16,13 +16,11 @@ class Filter { typename Current, typename Previous > - struct predicate_wrapper { - typedef If< - Predicate<Current>::type::value, - Cons<Current, Previous>, - Previous - > type; - }; + using predicate_wrapper = If< + Predicate<Current>::type::value, + Cons<Current, Previous>, + Previous + >; public: typedef typename Fold<predicate_wrapper, void, List>::type type; |