| 42 | |
| 43 | |
| 44 | int 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 | } |