compile.hana.tuple.reversed.erb.cpp 485 B

1234567891011121314
  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/hana/tuple.hpp>
  5. #include <boost/hana/sort.hpp>
  6. int main() {
  7. constexpr auto tuple = boost::hana::make_tuple(
  8. <%= (1..input_size).to_a.reverse.map { |n| "boost::hana::int_c<#{n}>" }.join(', ') %>
  9. );
  10. constexpr auto result = boost::hana::sort(tuple);
  11. (void)result;
  12. }