compile.meta.list.erb.cpp 465 B

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