compile.mpl11.list.erb.cpp 516 B

123456789101112131415161718192021222324
  1. // Copyright Louis Dionne 2013-2017
  2. // Distributed under the Boost Software License, Version 1.0.
  3. // (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
  4. #include <boost/mpl11/list.hpp>
  5. struct f {
  6. using type = f;
  7. template <typename>
  8. struct apply { struct type; };
  9. };
  10. template <int> struct x { struct type; };
  11. using list = boost::mpl11::list<
  12. <%= (1..input_size).map { |i| "x<#{i}>" }.join(', ') %>
  13. >;
  14. using result = boost::mpl11::fmap<f, list>::type;
  15. int main() {
  16. }