X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=3rdparty%2Fboost%2Fboost%2Fmpl%2Fpair_view.hpp;fp=3rdparty%2Fboost%2Fboost%2Fmpl%2Fpair_view.hpp;h=0000000000000000000000000000000000000000;hb=dd21fae48c78f7691811141f4fa6deeaca727bb1;hp=a72cf9287a45ed83aea2a6fe8997ad4086b674b9;hpb=2d553ec5b9485c58dd28d19a12db4f9e38d56054;p=lyx.git diff --git a/3rdparty/boost/boost/mpl/pair_view.hpp b/3rdparty/boost/boost/mpl/pair_view.hpp deleted file mode 100644 index a72cf9287a..0000000000 --- a/3rdparty/boost/boost/mpl/pair_view.hpp +++ /dev/null @@ -1,169 +0,0 @@ - -#ifndef BOOST_MPL_PAIR_VIEW_HPP_INCLUDED -#define BOOST_MPL_PAIR_VIEW_HPP_INCLUDED - -// 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. - -// $Id$ -// $Date$ -// $Revision$ - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace boost { namespace mpl { - -namespace aux { -struct pair_iter_tag; - -#if defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) - -template< typename Iter1, typename Iter2, typename Category > -struct pair_iter; - -template< typename Category > struct prior_pair_iter -{ - template< typename Iter1, typename Iter2 > struct apply - { - typedef typename mpl::prior::type i1_; - typedef typename mpl::prior::type i2_; - typedef pair_iter type; - }; -}; - -template<> struct prior_pair_iter -{ - template< typename Iter1, typename Iter2 > struct apply - { - typedef pair_iter type; - }; -}; - -#endif -} - -template< - typename Iter1 - , typename Iter2 - , typename Category - > -struct pair_iter -{ - typedef aux::pair_iter_tag tag; - typedef Category category; - typedef Iter1 first; - typedef Iter2 second; - -#if defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) - typedef pair< - typename deref::type - , typename deref::type - > type; - - typedef typename mpl::next::type i1_; - typedef typename mpl::next::type i2_; - typedef pair_iter next; - - typedef apply_wrap2< aux::prior_pair_iter,Iter1,Iter2 >::type prior; -#endif -}; - - -#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) - -template< typename Iter1, typename Iter2, typename C > -struct deref< pair_iter > -{ - typedef pair< - typename deref::type - , typename deref::type - > type; -}; - -template< typename Iter1, typename Iter2, typename C > -struct next< pair_iter > -{ - typedef typename mpl::next::type i1_; - typedef typename mpl::next::type i2_; - typedef pair_iter type; -}; - -template< typename Iter1, typename Iter2, typename C > -struct prior< pair_iter > -{ - typedef typename mpl::prior::type i1_; - typedef typename mpl::prior::type i2_; - typedef pair_iter type; -}; - -#endif // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION - - -template<> struct advance_impl -{ - template< typename Iter, typename D > struct apply - { - typedef typename mpl::advance< typename Iter::first,D >::type i1_; - typedef typename mpl::advance< typename Iter::second,D >::type i2_; - typedef pair_iter type; - }; -}; - -template<> struct distance_impl -{ - template< typename Iter1, typename Iter2 > struct apply - { - // agurt, 10/nov/04: MSVC 6.5 ICE-s on forwarding - typedef typename mpl::distance< - typename first::type - , typename first::type - >::type type; - }; -}; - - -template< - typename BOOST_MPL_AUX_NA_PARAM(Sequence1) - , typename BOOST_MPL_AUX_NA_PARAM(Sequence2) - > -struct pair_view -{ - typedef nested_begin_end_tag tag; - - typedef typename begin::type iter1_; - typedef typename begin::type iter2_; - typedef typename min< - typename iterator_category::type - , typename iterator_category::type - >::type category_; - - typedef pair_iter begin; - - typedef pair_iter< - typename end::type - , typename end::type - , category_ - > end; -}; - -BOOST_MPL_AUX_NA_SPEC(2, pair_view) - -}} - -#endif // BOOST_MPL_PAIR_VIEW_HPP_INCLUDED