cxxomfort  rel.20211024
Simple backports for C++ - https://ryan.gulix.cl/fossil.cgi/cxxomfort/

Local Functor emulation

Supplements:
#include <cxxomfort/library/localfn.hpp>
CXXO_FOREACH(item , range) { ... }

Cxxomfort implements the "local functor" pattern that allows usage of "local" "functions" as arguments to templates such as STL algorithms when in C++03. In C++11 onwards this pattern maps to the classic anonymous functor struct usage pattern.

The interface is provided via the CXXO_LOCALFN macro and its related macros.