// Copyright Aleksey Gurtovoy 2000-2004 // Copyright David Abrahams 2003-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 #include #include #include MPL_TEST_CASE() { typedef list10_c numbers; typedef list5_c::type answer; typedef remove_if< numbers , greater<_,int_<4> > , mpl::front_inserter< list0_c > >::type result; MPL_ASSERT_RELATION( size::value, ==, 5 ); MPL_ASSERT(( equal )); } MPL_TEST_CASE() { typedef list8 types; typedef list4::type answer; typedef reverse_remove_if< types , is_float<_> , mpl::front_inserter< list0<> > >::type result; MPL_ASSERT_RELATION( size::value, ==, 4 ); MPL_ASSERT(( equal )); }