From f81cd736e00c28cf24412a4099bae08ff2e6c493 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Mon, 16 Feb 2015 17:35:38 +0100 Subject: Unified `Iota` and `MakeList` using nested structure generator * `detail::generate_nested_structure` offers a higher order nested structure constructor for procedural list generation * renamed `Fold` implementation details --- src/list/operation/higher/fold.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/list/operation/higher/fold.h') diff --git a/src/list/operation/higher/fold.h b/src/list/operation/higher/fold.h index 7364fe5..3f39b40 100644 --- a/src/list/operation/higher/fold.h +++ b/src/list/operation/higher/fold.h @@ -10,10 +10,10 @@ template < typename Initial, typename Current > -struct Fold { +struct fold_pair { typedef Function< Head, - Eval>> + Eval>> > type; }; @@ -21,7 +21,7 @@ template < template class Function, typename Initial > -struct Fold { +struct fold_pair { typedef Initial type; }; @@ -32,7 +32,7 @@ template < typename Initial, typename Current > -using Fold = Eval>; +using Fold = Eval>; } -- cgit v1.2.3