]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | .. Metafunctions/Concepts//Lambda Expression |30 |
2 | ||
3 | Lambda Expression | |
4 | ================= | |
5 | ||
6 | Description | |
7 | ----------- | |
8 | ||
9 | A |Lambda Expression| is a compile-time invocable entity in either of the following two | |
10 | forms: | |
11 | ||
12 | * |Metafunction Class| | |
13 | * |Placeholder Expression| | |
14 | ||
15 | Most of the MPL components accept either of those, and the concept | |
16 | gives us a consice way to describe these requirements. | |
17 | ||
18 | ||
19 | Expression requirements | |
20 | ----------------------- | |
21 | ||
22 | See corresponding |Metafunction Class| and |Placeholder Expression| specifications. | |
23 | ||
24 | ||
25 | Models | |
26 | ------ | |
27 | ||
28 | * |always| | |
29 | * |unpack_args| | |
30 | * ``plus<_, int_<2> >`` | |
31 | * ``if_< less<_1, int_<7> >, plus<_1,_2>, _1 >`` | |
32 | ||
33 | ||
34 | See also | |
35 | -------- | |
36 | ||
37 | |Metafunctions|, |Placeholders|, |apply|, |lambda| | |
38 | ||
39 | ||
40 |