• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
5 #include <meta/meta.hpp>
6 
7 
8 struct is_last {
9     template <typename N>
10     using apply = meta::bool_<N::value == <%= input_size %>>;
11 };
12 
13 using list = meta::list<
14     <%= (1..input_size).map { |i| "meta::int_<#{i}>" }.join(', ') %>
15 >;
16 
17 using result = meta::find_if<list, is_last>;
18 
main()19 int main() {
20 
21 }
22