// Copyright Aleksey Gurtovoy 2000-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 #include MPL_TEST_CASE() { typedef list0<> l0; typedef list1 l1; typedef list2 l2; typedef list9 l9; MPL_ASSERT_RELATION(size::value, ==, 0); MPL_ASSERT_RELATION(size::value, ==, 1); MPL_ASSERT_RELATION(size::value, ==, 2); MPL_ASSERT_RELATION(size::value, ==, 9); MPL_ASSERT(( empty )); MPL_ASSERT_NOT(( empty )); MPL_ASSERT_NOT(( empty )); MPL_ASSERT_NOT(( empty )); MPL_ASSERT(( is_same::type,char> )); MPL_ASSERT(( is_same::type,char> )); MPL_ASSERT(( is_same::type,char> )); } MPL_TEST_CASE() { typedef list2 l2; typedef begin::type i1; typedef next::type i2; typedef next::type i3; MPL_ASSERT(( is_same::type,char> )); MPL_ASSERT(( is_same::type,long> )); MPL_ASSERT(( is_same< i3, end::type > )); } MPL_TEST_CASE() { typedef list0<> l0; typedef push_front::type l1; MPL_ASSERT(( is_same::type,char> )); typedef push_front::type l2; MPL_ASSERT(( is_same::type,long> )); }