olena: olena-2.0-898-ga49d29b milena/mln/core/concept/iterator.hh: Add for_all_4.

--- milena/mln/core/concept/iterator.hh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/milena/mln/core/concept/iterator.hh b/milena/mln/core/concept/iterator.hh index 8e4d2f0..49c3b7e 100644 --- a/milena/mln/core/concept/iterator.hh +++ b/milena/mln/core/concept/iterator.hh @@ -78,12 +78,16 @@ x1.is_valid(); \ x1.next(), x2.next(), x3.next()) +# define for_all_4(x1, x2, x3, x4) \ + for(x1.start(), x2.start(), x3.start(), x4.start(); \ + x1.is_valid(); \ + x1.next(), x2.next(), x3.next(), x4.next()) + # define for_all_5(x1, x2, x3, x4, x5) \ for(x1.start(), x2.start(), x3.start(), x4.start(), x5.start(); \ x1.is_valid(); \ x1.next(), x2.next(), x3.next(), x4.next(), x5.next()) - /* \def for_all_remaining(x) -- 1.7.10.4
participants (1)
-
myriam robert-seidowsky