From f4b7a4f30257e9977ee0df97963b53b8b678b408 Mon Sep 17 00:00:00 2001 From: Andreas Stallinger Date: Wed, 23 Oct 2019 21:55:08 +0200 Subject: [PATCH] add small documentation for for_first_then_each --- src/util/LoopUtil.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/util/LoopUtil.h b/src/util/LoopUtil.h index c0542cc5..0c2502e4 100644 --- a/src/util/LoopUtil.h +++ b/src/util/LoopUtil.h @@ -13,6 +13,11 @@ #include +/** + * for_first_then_each + * loop over the container from begin to end but handles the first element + * differently. + */ template void for_first_then_each(Container container, Function_first function_first, Function_others function_others) {