1
//-----------------------------------------------------------------------------
2
// boost mpl/aux_/erase_impl.hpp header file
3
// See http://www.boost.org for updates, documentation, and revision history.
4
//-----------------------------------------------------------------------------
6
// Copyright (c) 2000-02
9
// Permission to use, copy, modify, distribute and sell this software
10
// and its documentation for any purpose is hereby granted without fee,
11
// provided that the above copyright notice appears in all copies and
12
// that both the copyright notice and this permission notice appear in
13
// supporting documentation. No representations are made about the
14
// suitability of this software for any purpose. It is provided "as is"
15
// without express or implied warranty.
17
#ifndef BOOST_MPL_AUX_ERASE_IMPL_HPP_INCLUDED
18
#define BOOST_MPL_AUX_ERASE_IMPL_HPP_INCLUDED
20
#include "boost/mpl/clear.hpp"
21
#include "boost/mpl/push_front.hpp"
22
#include "boost/mpl/copy_backward.hpp"
23
#include "boost/mpl/iterator_range.hpp"
24
#include "boost/mpl/aux_/void_spec.hpp"
29
// default implementation; conrete sequences might override it by
30
// specializing either the |erase_traits| or the primary |erase| template
32
template< typename Tag >
43
// 1st half: [begin, first)
44
typedef iterator_range<
45
typename begin<Sequence>::type
49
// 2nd half: [last, end) ... that is, [last + 1, end)
50
typedef iterator_range<
52
, typename end<Sequence>::type
55
typedef typename copy_backward<
57
, typename clear<Sequence>::type
59
>::type half_sequence_;
62
typedef typename copy_backward<
74
#endif // BOOST_MPL_AUX_ERASE_IMPL_HPP_INCLUDED