compile.meta.list.erb.cpp 438 B

1234567891011121314151617181920212223
  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 <meta/meta.hpp>
  5. struct f {
  6. template <typename>
  7. struct apply;
  8. };
  9. template <int> struct x;
  10. using list = meta::list<
  11. <%= (1..input_size).map { |i| "x<#{i}>" }.join(', ') %>
  12. >;
  13. using result = meta::transform<list, f>;
  14. int main() {
  15. }