読者です 読者をやめる 読者になる 読者になる

Haruyuki Mohri

毛利春幸のブログです。

Implement Parallel::For() in lambda C++Builder 10 Seattle

Last time, Parallel::For() in the lambda is described as impossible.

mojelder.hatenablog.com

My understanding is, it was insufficient.

In DelphiInterface<TProc__1 > , it is possible to cast.

 TParallel::For(0, 0, 1,
        (DelphiInterface<TProc__1<int> >)[](int i){}
    );

By using the lambda, it became smart than the previous.

f:id:mojeld:20150909094820p:plain