1 
2 // Copyright Aleksey Gurtovoy 2004
3 // Copyright Eric Friedman 2002-2003
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 #include <boost/mpl/sort.hpp>
12 
13 #include <boost/mpl/list_c.hpp>
14 #include <boost/mpl/equal.hpp>
15 #include <boost/mpl/equal_to.hpp>
16 
17 #include <boost/mpl/aux_/test.hpp>
18 
MPL_TEST_CASE()19 MPL_TEST_CASE()
20 {
21     typedef list_c<int, 3, 4, 0, -5, 8, -1, 7>::type numbers;
22     typedef list_c<int, -5, -1, 0, 3, 4, 7, 8>::type manual_result;
23 
24     typedef sort< numbers >::type result;
25 
26     MPL_ASSERT(( equal< result,manual_result,equal_to<_1,_2> > ));
27 }
28