Back to Arangodb

apply/lambda Semantics

3rdParty/boost/1.78.0/libs/mpl/doc/tutorial/apply-lambda-semantics.html

3.12.9.11.6 KB
Original Source

| Prev Next | Back Along | Up Home | Full TOC | Front Page / Changelog & History / Changes in Boost 1.32.0 Release / apply/lambda Semantics |

apply/lambda Semantics

  1. Nullary metafunction classes are now consistent with all other metafunction classes, rather than being identical to nullary metafunctions:

  2. The apply metafunction now automatically invokes lambda on its first argument. For example, the following is well-formed now:

  3. The lambda implementation for broken compilers has been reworked to emulate the semantics of the full-fledged version as closely as possible; consequently, any code out there that was taking advantage of the semantic quirks of less complete emulation in the previous release may stop working with the new one.

To get a detailed picture of the new apply/lambda semantics, please see the test case at libs/mpl/test/apply.cpp and the corresponding sections of the MPL reference manual.

| [7] | The second form is available only on fully conforming compilers. |

| Prev Next | Back Along | Up Home | Full TOC |