MCPcopy Create free account
hub / github.com/boostorg/hana / main

Function main

test/ext/std/integer_sequence/unpack.cpp:18–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17
18int main() {
19 hana::test::_injection<0> f{};
20
21 BOOST_HANA_CONSTANT_CHECK(hana::equal(
22 hana::unpack(std::integer_sequence<int>{}, f),
23 f()
24 ));
25
26 BOOST_HANA_CONSTANT_CHECK(hana::equal(
27 hana::unpack(std::integer_sequence<int, 0>{}, f),
28 f(std::integral_constant<int, 0>{})
29 ));
30
31 BOOST_HANA_CONSTANT_CHECK(hana::equal(
32 hana::unpack(std::integer_sequence<int, 0, 1>{}, f),
33 f(std::integral_constant<int, 0>{}, std::integral_constant<int, 1>{})
34 ));
35
36 BOOST_HANA_CONSTANT_CHECK(hana::equal(
37 hana::unpack(std::integer_sequence<int, 0, 1, 2>{}, f),
38 f(std::integral_constant<int, 0>{}, std::integral_constant<int, 1>{},
39 std::integral_constant<int, 2>{})
40 ));
41
42 BOOST_HANA_CONSTANT_CHECK(hana::equal(
43 hana::unpack(std::integer_sequence<int, 0, 1, 2, 3>{}, f),
44 f(std::integral_constant<int, 0>{}, std::integral_constant<int, 1>{},
45 std::integral_constant<int, 2>{}, std::integral_constant<int, 3>{})
46 ));
47}

Callers

nothing calls this directly

Calls 2

equalClass · 0.50
fClass · 0.50

Tested by

no test coverage detected