// Copyright Aleksey Gurtovoy 2001-2004 // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // See http://www.boost.org/libs/mpl for documentation. // $Id$ // $Date$ // $Revision$ #include #include #include #include #include #include MPL_TEST_CASE() { typedef joint_view< range_c , range_c > numbers; typedef range_c answer; MPL_ASSERT(( equal )); MPL_ASSERT(( equal )); MPL_ASSERT_RELATION( size::value, ==, 15 ); } template< typename View > struct test_is_empty { typedef typename begin::type first_; typedef typename end::type last_; MPL_ASSERT_RELATION( size::value, ==, 0 ); MPL_ASSERT(( is_same< first_,last_> )); MPL_ASSERT_INSTANTIATION( View ); MPL_ASSERT_INSTANTIATION( first_ ); MPL_ASSERT_INSTANTIATION( last_ ); }; MPL_TEST_CASE() { test_is_empty< joint_view< list0<>,list0<> > >(); test_is_empty< joint_view< list<>,list0<> > >(); test_is_empty< joint_view< list<>,list<> > >(); test_is_empty< joint_view< list<>, joint_view< list0<>,list0<> > > >(); }