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

Function main

test/basic_tuple/unpack.cpp:15–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14
15int main() {
16 hana::test::_injection<0> f{};
17
18 BOOST_HANA_CONSTANT_CHECK(hana::equal(
19 hana::unpack(hana::make_basic_tuple(), f),
20 f()
21 ));
22
23 BOOST_HANA_CONSTANT_CHECK(hana::equal(
24 hana::unpack(hana::make_basic_tuple(ct_eq<0>{}), f),
25 f(ct_eq<0>{})
26 ));
27
28 BOOST_HANA_CONSTANT_CHECK(hana::equal(
29 hana::unpack(hana::make_basic_tuple(ct_eq<0>{}, ct_eq<1>{}), f),
30 f(ct_eq<0>{}, ct_eq<1>{})
31 ));
32
33 BOOST_HANA_CONSTANT_CHECK(hana::equal(
34 hana::unpack(hana::make_basic_tuple(ct_eq<0>{}, ct_eq<1>{}, ct_eq<2>{}), f),
35 f(ct_eq<0>{}, ct_eq<1>{}, ct_eq<2>{})
36 ));
37}

Callers

nothing calls this directly

Calls 2

equalClass · 0.50
fClass · 0.50

Tested by

no test coverage detected