Implementation of GCC's Nested Functions (vs. C++ Lambdas)

Implementation of GCC's Nested Functions (vs. C++ Lambdas)

GCC has added support for nested functions, a feature that lets developers define a function inside another function. The change brings GCC closer to C++ lambdas by enabling local function definitions that capture surrounding variables. The new capability is available in GCC 13 and later, and it can improve code readability and modularity for certain use cases.