Page 1 of 1

What is the syntax of defining lambda expression?

Posted: Wed Jul 13, 2022 7:53 pm
by answerhappygod
a) [capture clause](parameters) -> return_type { body of the function }
b) [parameters](capture clause) -> return_type { body of the function }
c) [parameters:capture clause]() -> return_type { body of the function }
d) [capture clause:parameters]() -> return_type { body of the function }