C++ Language/Std/Stl/CallableObjects/Lambda

Just like an  has a literal form (e.g.,  ), a callable-object has a literal form called a "lambda". In this example, the literal is being assigned to a callable-object variable:

Additional information about lambdas (includes interactive examples)