mirror of
https://github.com/boostorg/hana.git
synced 2026-02-23 15:52:11 +00:00
21 lines
512 B
C++
21 lines
512 B
C++
<% render(instance) %>
|
|
<%= includes(x) %>
|
|
|
|
#include <boost/hana/detail/constexpr.hpp>
|
|
#include <boost/hana/foldable/foldable.hpp>
|
|
#include <boost/hana/integral.hpp>
|
|
|
|
|
|
BOOST_HANA_CONSTEXPR_LAMBDA auto in_the_middle = [](auto x) {
|
|
return x == boost::hana::int_< <%= x / 2 %> >;
|
|
};
|
|
|
|
int main() {
|
|
auto go = boost::hana::any(in_the_middle,
|
|
<%= list(
|
|
(0..x).map { |i| "decltype(boost::hana::int_<#{i}>)" },
|
|
(0..x).map { |i| "boost::hana::int_<#{i}>" }
|
|
) %>
|
|
);
|
|
}
|