MorphoGraphX
|
This file contains the defines the forall loops. More...
#include <Config.hpp>
#include <iterator>
#include <utility>
Go to the source code of this file.
Macros | |
#define | forall_range(typed_var, range) |
#define | forall(typed_var, cont) |
#define | forall_reverse(typed_var, cont) |
#define | forall_named(typed_var, cont, name) |
This file contains the defines the forall loops.
Forall allows to iterate on STL container or range.
Use examples:
This example shows how to iterate on a container returned by value by a function:
Use example with range:
In this example, the values in the vector are changed too.