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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user