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

Function main

test/issues/github_31.cpp:44–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42
43
44int main() {
45 // find_if and any_of should short-circuit and stop even though the
46 // Iterable is infinite.
47 BOOST_HANA_CONSTANT_CHECK(hana::any_of(counter<1>{}, hana::equal.to(hana::int_c<4>)));
48
49 BOOST_HANA_CONSTANT_CHECK(hana::equal(
50 hana::find_if(counter<1>{}, hana::equal.to(hana::int_c<4>)),
51 hana::just(hana::int_c<4>)
52 ));
53}

Callers

nothing calls this directly

Calls 3

any_ofClass · 0.85
equalClass · 0.50
find_ifClass · 0.50

Tested by

no test coverage detected