aboutsummaryrefslogtreecommitdiff
path: root/src/function/detail
diff options
context:
space:
mode:
authorAdrian Kummerlaender2015-02-12 14:32:33 +0100
committerAdrian Kummerlaender2015-02-12 14:32:33 +0100
commit246cb31c1e20cdcc21a6a607de4b0095c71315d6 (patch)
tree0301c23d9c09b0a578413019a2d27f75cf69a374 /src/function/detail
parent4bb200de716891ed6c9fc182311c02685c8bdfd4 (diff)
downloadTypeAsValue-246cb31c1e20cdcc21a6a607de4b0095c71315d6.tar
TypeAsValue-246cb31c1e20cdcc21a6a607de4b0095c71315d6.tar.gz
TypeAsValue-246cb31c1e20cdcc21a6a607de4b0095c71315d6.tar.bz2
TypeAsValue-246cb31c1e20cdcc21a6a607de4b0095c71315d6.tar.lz
TypeAsValue-246cb31c1e20cdcc21a6a607de4b0095c71315d6.tar.xz
TypeAsValue-246cb31c1e20cdcc21a6a607de4b0095c71315d6.tar.zst
TypeAsValue-246cb31c1e20cdcc21a6a607de4b0095c71315d6.zip
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`
Diffstat (limited to 'src/function/detail')
-rw-r--r--src/function/detail/apply.h8
1 files changed, 8 insertions, 0 deletions
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
@@ -46,6 +46,14 @@ template <
template<typename...> class Function,
typename... Arguments
>
+struct apply_none {
+ using type = Function<Arguments...>;
+};
+
+template <
+ template<typename...> class Function,
+ typename... Arguments
+>
struct apply_variadic {
template <typename... Partials>
using type = Function<