Chapter 3 | More meta - kuredoro/mplbook_solutions GitHub Wiki

Points to remember:

  1. Metafunction forwarding

  2. Metafunction class

  3. Higher-order functions

  4. Lambda expression (metaF class or a placeholder expression)

  5. Placeholder expressions (mpl::arg<N> or a template with a least one placeholder expression)

    a. Partial metafunction application (plus<_1, _1> or plus<_1, 42>)

    b. Metafunction composition

  6. mpl::lambda (turns lambda expression into metafunction class)

  7. mpl::apply (used to invoke lambda expressions)

From the exercises

Don't assume that mpl::vectors of the same content will have the same type. Check that two vectors are equal with mpl::equal inside static_assert.

⚠️ **GitHub.com Fallback** ⚠️