From 246cb31c1e20cdcc21a6a607de4b0095c71315d6 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Thu, 12 Feb 2015 14:32:33 +0100 Subject: Implemented `Cond` conditional * returns the `CDR` of the first true `CAR` in a given list of pairs * reimplemented `Apply` base class selection in terms of `Cond` --- src/function/detail/apply.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/function/detail') diff --git a/src/function/detail/apply.h b/src/function/detail/apply.h index bf60be1..d9f058a 100644 --- a/src/function/detail/apply.h +++ b/src/function/detail/apply.h @@ -42,6 +42,14 @@ using count_placeholders = Count< typename List::type >; +template < + template class Function, + typename... Arguments +> +struct apply_none { + using type = Function; +}; + template < template class Function, typename... Arguments -- cgit v1.2.3