// lambda (local only)
auto funcName = [] (dataType param1, ...) -> returnType {
// code
};
//range-based for loop
for(int i : {0,1,2,3,4,5,6,7,8,9,10}) {
i < 0xA ? printf("launching in %i...\n", i) : printf("we have lift off!\n");
}
Copyright © 2024, NextGenUpdate.
All Rights Reserved.