123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- #ifndef BOOST_MPL_AUX_ERASE_IMPL_HPP_INCLUDED
- #define BOOST_MPL_AUX_ERASE_IMPL_HPP_INCLUDED
- #include <boost/mpl/clear.hpp>
- #include <boost/mpl/push_front.hpp>
- #include <boost/mpl/reverse_fold.hpp>
- #include <boost/mpl/iterator_range.hpp>
- #include <boost/mpl/next.hpp>
- #include <boost/mpl/aux_/na.hpp>
- namespace boost { namespace mpl {
- template< typename Tag >
- struct erase_impl
- {
- template<
- typename Sequence
- , typename First
- , typename Last
- >
- struct apply
- {
- typedef typename if_na< Last,typename next<First>::type >::type last_;
-
-
- typedef iterator_range<
- typename begin<Sequence>::type
- , First
- > first_half_;
-
- typedef iterator_range<
- last_
- , typename end<Sequence>::type
- > second_half_;
- typedef typename reverse_fold<
- second_half_
- , typename clear<Sequence>::type
- , push_front<_,_>
- >::type half_sequence_;
- typedef typename reverse_fold<
- first_half_
- , half_sequence_
- , push_front<_,_>
- >::type type;
- };
- };
- }}
- #endif
|