// 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: /cvsroot/boost/boost/libs/mpl/test/pair_view.cpp,v $ // $Date: 2004/11/28 03:35:12 $ // $Revision: 1.3 $ #include #include #include #include #include MPL_TEST_CASE() { typedef range_c r; typedef vector10_c v; typedef pair_view view; typedef begin::type first_; typedef end::type last_; MPL_ASSERT(( is_same< first_::category, mpl::random_access_iterator_tag > )); MPL_ASSERT(( is_same< advance_c::type, first_ > )); MPL_ASSERT(( is_same< advance_c::type, last_ > )); MPL_ASSERT(( is_same< advance_c::type, last_ > )); MPL_ASSERT(( is_same< advance_c::type, first_ > )); typedef advance_c::type iter; MPL_ASSERT(( is_same< deref::type , mpl::pair< integral_c,integral_c > > )); }