cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Meaning of a lambda expression
Meaning of a lambda expression
Aug 31, 2016 at 7:55pm UTC
JUAN DENT
(326)
Hi,
I have the following lambda expression and have no idea how to use or what it means:
typedef
mpl::lambda<mpl::lambda<_1>>::type t1;
Any ideas?
Thanks!
Juan
Aug 31, 2016 at 8:03pm UTC
jlb
(4973)
What you have is a typedef, not a lambda expression.
http://www.cplusplus.com/doc/tutorial/other_data_types/
Aug 31, 2016 at 8:31pm UTC
JUAN DENT
(326)
Got it ---
Since _1 is a placeholder expression, then a metafunction class is generated, meaning that a metafunction apply<T> is available under the type generated
The second lambda invocation does nothing since it receives a metafunction class already...
Thanks
Juan
Topic archived. No new replies allowed.