merge new MPL version from 'mplbook' branch

[SVN r24874]
This commit is contained in:
Aleksey Gurtovoy
2004-09-02 15:41:37 +00:00
parent e2e70427cc
commit 1689c8ef83
1216 changed files with 89913 additions and 36752 deletions
+32
View File
@@ -0,0 +1,32 @@
// Copyright David Abrahams 2003-2004
// Copyright Aleksey Gurtovoy 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.
// $Source$
// $Date$
// $Revision$
#include <boost/mpl/pair_view.hpp>
#include <boost/mpl/list/list10_c.hpp>
#include <boost/mpl/front.hpp>
#include <boost/mpl/back.hpp>
#include <boost/mpl/aux_/test.hpp>
MPL_TEST_CASE()
{
typedef list10_c<int,0,1,2,3,4,5,6,7,8,9> l1;
typedef list10_c<int,9,8,7,6,5,4,3,2,1,0> l2;
typedef pair_view<l1,l2> view;
MPL_ASSERT_RELATION( front<view>::type::first::value, ==, 0 );
MPL_ASSERT_RELATION( front<view>::type::second::value, ==, 9 );
}