forked from boostorg/range
Remove obsolete files.
[SVN r86242]
This commit is contained in:
@ -17,9 +17,6 @@
|
|||||||
|
|
||||||
#include <boost/range/config.hpp>
|
#include <boost/range/config.hpp>
|
||||||
|
|
||||||
#ifdef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
|
|
||||||
#include <boost/range/detail/const_iterator.hpp>
|
|
||||||
#else
|
|
||||||
|
|
||||||
#include <boost/range/detail/extract_optional_type.hpp>
|
#include <boost/range/detail/extract_optional_type.hpp>
|
||||||
#include <boost/type_traits/remove_const.hpp>
|
#include <boost/type_traits/remove_const.hpp>
|
||||||
@ -62,6 +59,5 @@ namespace boost
|
|||||||
|
|
||||||
} // namespace boost
|
} // namespace boost
|
||||||
|
|
||||||
#endif // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,71 +0,0 @@
|
|||||||
// Boost.Range library
|
|
||||||
//
|
|
||||||
// Copyright Thorsten Ottosen 2003-2004. Use, modification and
|
|
||||||
// distribution is subject to 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)
|
|
||||||
//
|
|
||||||
// For more information, see http://www.boost.org/libs/range/
|
|
||||||
//
|
|
||||||
|
|
||||||
#ifndef BOOST_RANGE_DETAIL_CONST_ITERATOR_HPP
|
|
||||||
#define BOOST_RANGE_DETAIL_CONST_ITERATOR_HPP
|
|
||||||
|
|
||||||
#include <boost/range/detail/common.hpp>
|
|
||||||
#include <boost/range/detail/remove_extent.hpp>
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
|
||||||
// missing partial specialization workaround.
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
namespace boost
|
|
||||||
{
|
|
||||||
namespace range_detail
|
|
||||||
{
|
|
||||||
template< typename T >
|
|
||||||
struct range_const_iterator_;
|
|
||||||
|
|
||||||
template<>
|
|
||||||
struct range_const_iterator_<std_container_>
|
|
||||||
{
|
|
||||||
template< typename C >
|
|
||||||
struct pts
|
|
||||||
{
|
|
||||||
typedef BOOST_RANGE_DEDUCED_TYPENAME C::const_iterator type;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
template<>
|
|
||||||
struct range_const_iterator_<std_pair_>
|
|
||||||
{
|
|
||||||
template< typename P >
|
|
||||||
struct pts
|
|
||||||
{
|
|
||||||
typedef BOOST_RANGE_DEDUCED_TYPENAME P::first_type type;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
template<>
|
|
||||||
struct range_const_iterator_<array_>
|
|
||||||
{
|
|
||||||
template< typename T >
|
|
||||||
struct pts
|
|
||||||
{
|
|
||||||
typedef const BOOST_RANGE_DEDUCED_TYPENAME
|
|
||||||
remove_extent<T>::type* type;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
template< typename C >
|
|
||||||
class range_const_iterator
|
|
||||||
{
|
|
||||||
typedef BOOST_DEDUCED_TYPENAME range_detail::range<C>::type c_type;
|
|
||||||
public:
|
|
||||||
typedef BOOST_DEDUCED_TYPENAME range_detail::range_const_iterator_<c_type>::BOOST_NESTED_TEMPLATE pts<C>::type type;
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
@ -1,78 +0,0 @@
|
|||||||
// Boost.Range library
|
|
||||||
//
|
|
||||||
// Copyright Thorsten Ottosen 2003-2004. Use, modification and
|
|
||||||
// distribution is subject to 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)
|
|
||||||
//
|
|
||||||
// For more information, see http://www.boost.org/libs/range/
|
|
||||||
//
|
|
||||||
|
|
||||||
#ifndef BOOST_RANGE_DETAIL_ITERATOR_HPP
|
|
||||||
#define BOOST_RANGE_DETAIL_ITERATOR_HPP
|
|
||||||
|
|
||||||
#include <boost/range/detail/common.hpp>
|
|
||||||
#include <boost/range/detail/remove_extent.hpp>
|
|
||||||
|
|
||||||
#include <boost/static_assert.hpp>
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
|
||||||
// missing partial specialization workaround.
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
namespace boost
|
|
||||||
{
|
|
||||||
namespace range_detail
|
|
||||||
{
|
|
||||||
template< typename T >
|
|
||||||
struct range_iterator_ {
|
|
||||||
template< typename C >
|
|
||||||
struct pts
|
|
||||||
{
|
|
||||||
typedef int type;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
template<>
|
|
||||||
struct range_iterator_<std_container_>
|
|
||||||
{
|
|
||||||
template< typename C >
|
|
||||||
struct pts
|
|
||||||
{
|
|
||||||
typedef BOOST_RANGE_DEDUCED_TYPENAME C::iterator type;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
template<>
|
|
||||||
struct range_iterator_<std_pair_>
|
|
||||||
{
|
|
||||||
template< typename P >
|
|
||||||
struct pts
|
|
||||||
{
|
|
||||||
typedef BOOST_RANGE_DEDUCED_TYPENAME P::first_type type;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
template<>
|
|
||||||
struct range_iterator_<array_>
|
|
||||||
{
|
|
||||||
template< typename T >
|
|
||||||
struct pts
|
|
||||||
{
|
|
||||||
typedef BOOST_RANGE_DEDUCED_TYPENAME
|
|
||||||
remove_extent<T>::type* type;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
template< typename C >
|
|
||||||
class range_mutable_iterator
|
|
||||||
{
|
|
||||||
typedef BOOST_RANGE_DEDUCED_TYPENAME range_detail::range<C>::type c_type;
|
|
||||||
public:
|
|
||||||
typedef typename range_detail::range_iterator_<c_type>::BOOST_NESTED_TEMPLATE pts<C>::type type;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
@ -1,144 +0,0 @@
|
|||||||
// Boost.Range library
|
|
||||||
//
|
|
||||||
// Copyright Thorsten Ottosen 2003-2004. Use, modification and
|
|
||||||
// distribution is subject to 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)
|
|
||||||
//
|
|
||||||
// For more information, see http://www.boost.org/libs/range/
|
|
||||||
//
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef BOOST_RANGE_DETAIL_SIZE_HPP
|
|
||||||
#define BOOST_RANGE_DETAIL_SIZE_HPP
|
|
||||||
|
|
||||||
#include <boost/config.hpp> // BOOST_MSVC
|
|
||||||
#include <boost/detail/workaround.hpp>
|
|
||||||
#include <boost/range/detail/implementation_help.hpp>
|
|
||||||
#include <boost/range/detail/size_type.hpp>
|
|
||||||
#include <boost/range/detail/common.hpp>
|
|
||||||
#include <iterator>
|
|
||||||
|
|
||||||
namespace boost
|
|
||||||
{
|
|
||||||
namespace range_detail
|
|
||||||
{
|
|
||||||
template< typename T >
|
|
||||||
struct range_size_;
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////
|
|
||||||
// default
|
|
||||||
//////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
template<>
|
|
||||||
struct range_size_<std_container_>
|
|
||||||
{
|
|
||||||
template< typename C >
|
|
||||||
static BOOST_RANGE_DEDUCED_TYPENAME C::size_type fun( const C& c )
|
|
||||||
{
|
|
||||||
return c.size();
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////
|
|
||||||
// pair
|
|
||||||
//////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
template<>
|
|
||||||
struct range_size_<std_pair_>
|
|
||||||
{
|
|
||||||
template< typename P >
|
|
||||||
static BOOST_RANGE_DEDUCED_TYPENAME range_size<P>::type
|
|
||||||
fun( const P& p )
|
|
||||||
{
|
|
||||||
return std::distance( p.first, p.second );
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////
|
|
||||||
// array
|
|
||||||
//////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
template<>
|
|
||||||
struct range_size_<array_>
|
|
||||||
{
|
|
||||||
template<typename T>
|
|
||||||
static std::size_t fun(T& t)
|
|
||||||
{
|
|
||||||
return remove_extent<T>::size;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
template<>
|
|
||||||
struct range_size_<char_array_>
|
|
||||||
{
|
|
||||||
template< typename T, std::size_t sz >
|
|
||||||
static std::size_t fun( T BOOST_RANGE_ARRAY_REF()[sz] )
|
|
||||||
{
|
|
||||||
return boost::range_detail::array_size( boost_range_array );
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
template<>
|
|
||||||
struct range_size_<wchar_t_array_>
|
|
||||||
{
|
|
||||||
template< typename T, std::size_t sz >
|
|
||||||
static std::size_t fun( T BOOST_RANGE_ARRAY_REF()[sz] )
|
|
||||||
{
|
|
||||||
return boost::range_detail::array_size( boost_range_array );
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////
|
|
||||||
// string
|
|
||||||
//////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
template<>
|
|
||||||
struct range_size_<char_ptr_>
|
|
||||||
{
|
|
||||||
static std::size_t fun( const char* s )
|
|
||||||
{
|
|
||||||
return boost::range_detail::str_size( s );
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
template<>
|
|
||||||
struct range_size_<const_char_ptr_>
|
|
||||||
{
|
|
||||||
static std::size_t fun( const char* s )
|
|
||||||
{
|
|
||||||
return boost::range_detail::str_size( s );
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
template<>
|
|
||||||
struct range_size_<wchar_t_ptr_>
|
|
||||||
{
|
|
||||||
static std::size_t fun( const wchar_t* s )
|
|
||||||
{
|
|
||||||
return boost::range_detail::str_size( s );
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
template<>
|
|
||||||
struct range_size_<const_wchar_t_ptr_>
|
|
||||||
{
|
|
||||||
static std::size_t fun( const wchar_t* s )
|
|
||||||
{
|
|
||||||
return boost::range_detail::str_size( s );
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
} // namespace 'range_detail'
|
|
||||||
|
|
||||||
|
|
||||||
template< typename C >
|
|
||||||
BOOST_RANGE_DEDUCED_TYPENAME range_size<C>::type
|
|
||||||
size( const C& c )
|
|
||||||
{
|
|
||||||
return range_detail::range_size_< BOOST_RANGE_DEDUCED_TYPENAME range_detail::range<C>::type >::fun( c );
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace 'boost'
|
|
||||||
|
|
||||||
#endif
|
|
@ -17,9 +17,6 @@
|
|||||||
|
|
||||||
#include <boost/range/config.hpp>
|
#include <boost/range/config.hpp>
|
||||||
|
|
||||||
#ifdef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
|
|
||||||
#include <boost/range/detail/iterator.hpp>
|
|
||||||
#else
|
|
||||||
|
|
||||||
#include <boost/range/detail/extract_optional_type.hpp>
|
#include <boost/range/detail/extract_optional_type.hpp>
|
||||||
#include <boost/iterator/iterator_traits.hpp>
|
#include <boost/iterator/iterator_traits.hpp>
|
||||||
@ -62,6 +59,5 @@ namespace boost
|
|||||||
|
|
||||||
} // namespace boost
|
} // namespace boost
|
||||||
|
|
||||||
#endif // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user