cxxomfort
rel.20211024
Simple backports for C++ - https://ryan.gulix.cl/fossil.cgi/cxxomfort/
|
Macros | |
#define | CXXO_FOREACH(itemdecl, collection) for (implementation_specific_arguments;;) |
Foreach loop construct that iterates over collection . More... | |
#define CXXO_FOREACH | ( | itemdecl, | |
collection | |||
) | for (implementation_specific_arguments;;) |
Foreach loop construct that iterates over collection
.
See also "<iterator> support" .
A foreach macro declares iteration over collection
, which can be any STL-compatible sequence, using itemdecl
as the iterating item.
Usage is as follows:
When using C++11 onwards, this evaluates to the native range-for syntax, for zero overhead.