2
0
mirror of https://github.com/boostorg/hana.git synced 2026-01-31 20:22:10 +00:00

Rework the relations between Foldable, Iterable and Searchable.

This commit is contained in:
Louis Dionne
2015-04-10 17:46:14 -04:00
parent c434f134ba
commit 08e55a7bb6
11 changed files with 238 additions and 289 deletions

View File

@@ -26,15 +26,6 @@ int main() {
{
//! [conversion]
static_assert(to<Tuple>(just(1)) == make<Tuple>(1), "");
BOOST_HANA_CONSTANT_CHECK(to<Tuple>(nothing) == make<Tuple>());
BOOST_HANA_CONSTANT_CHECK(to<Tuple>(make_range(int_<3>, int_<6>)) == tuple_c<int, 3, 4, 5>);
//! [conversion]
}{
//! [comparable]
BOOST_HANA_CONSTEXPR_CHECK(make<Tuple>(1, 2, 3) == make<Tuple>(1, 2, 3));
BOOST_HANA_CONSTANT_CHECK(make<Tuple>(1, 2, 3) != make<Tuple>(1, 2, 3, 4));