This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: apple blocks extension


On 09/24/2009 11:22 AM, Chris Lattner wrote:
Can the lambda (containing X) be copied and put onto a queue? What is
its type?

As you said, the lambda has a unique anonymous type. If you want to put multiple lambdas into a container, you can use std::function as the element type.


Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]