- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good afternoon.
Tell me please when will be a possibility to use template lambda function in Intel compiler?
Tell me please when will be a possibility to use template lambda function in Intel compiler?
Link Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you point to a document on this extension please? Not sure what you're referring to...
thanks
Judy
thanks
Judy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If it is possible to write lambda function why it is impossible to write a template lambda function?
Unfortunately it while is not present, but hands and ask to write template =)
Whether it is necessary to expect such extension in the near future?
Unfortunately it while is not present, but hands and ask to write template =)
Whether it is necessary to expect such extension in the near future?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
One already can use template arguments from the outer function toa lambda function. Can you show
an example of what you're trying to do? Sincelambdas are not really functions, i.e. they can only becalled from oneplace(at the point of the definition) what would be the purposein makingthem templates?
Anywaythis is really a question for the C++ standards committee. Intel has implemented what's described in the C++0x standard.
an example of what you're trying to do? Sincelambdas are not really functions, i.e. they can only becalled from oneplace(at the point of the definition) what would be the purposein makingthem templates?
Anywaythis is really a question for the C++ standards committee. Intel has implemented what's described in the C++0x standard.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I mean something that =)
[bash]templateType lambdaSum = [&](Type x, Type y) { return x + y; };[/bash]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thisdoesn't look like a lambda since lambdas don't have names and can't be "called" like a function. This looks more like a template function that's trying to use lambda syntax for the parameter types.
Judy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for answers.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page