1 
2 // Copyright Aleksey Gurtovoy 2000-2004
3 // Copyright David Abrahams 2003-2004
4 //
5 // Distributed under the Boost Software License, Version 1.0.
6 // (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
8 //
9 // See http://www.boost.org/libs/mpl for documentation.
10 
11 // $Id$
12 // $Date$
13 // $Revision$
14 
15 #include <boost/mpl/unique.hpp>
16 #include <boost/mpl/list.hpp>
17 #include <boost/mpl/equal.hpp>
18 #include <boost/type_traits/is_same.hpp>
19 
20 #include <boost/mpl/aux_/test.hpp>
21 
MPL_TEST_CASE()22 MPL_TEST_CASE()
23 {
24     typedef list<int,float,float,char,int,int,int,double> types;
25     typedef unique< types, is_same<_1,_2> >::type result;
26 
27     typedef list<int,float,char,int,double>::type answer;
28     MPL_ASSERT(( equal< result,answer > ));
29 }
30