forked from boostorg/container
Implemented SCARY iterators for all containers
[SVN r85308]
This commit is contained in:
@@ -48,8 +48,6 @@ bool CheckEqualContainers(const MyBoostCont *boostcont, const MyStdCont *stdcont
|
||||
if(boostcont->size() != stdcont->size())
|
||||
return false;
|
||||
|
||||
typedef typename MyBoostCont::value_type value_type;
|
||||
|
||||
typename MyBoostCont::const_iterator itboost(boostcont->begin()), itboostend(boostcont->end());
|
||||
typename MyStdCont::const_iterator itstd(stdcont->begin());
|
||||
typename MyStdCont::size_type dist = (typename MyStdCont::size_type)std::distance(itboost, itboostend);
|
||||
|
||||
+4
-4
@@ -34,10 +34,10 @@ template class boost::container::list<test::movable_and_copyable_int,
|
||||
|
||||
namespace container_detail {
|
||||
|
||||
template class list_const_iterator
|
||||
<int, intrusive_list_type< std::allocator<int> >::container_type::iterator >;
|
||||
template class list_iterator
|
||||
<int, intrusive_list_type< std::allocator<int> >::container_type::iterator>;
|
||||
template class iterator
|
||||
<intrusive_list_type< std::allocator<int> >::container_type::iterator, true >;
|
||||
template class iterator
|
||||
<intrusive_list_type< std::allocator<int> >::container_type::iterator, false>;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -31,15 +31,6 @@ template class boost::container::slist<test::movable_and_copyable_int,
|
||||
template class boost::container::slist<test::movable_and_copyable_int,
|
||||
std::allocator<test::movable_and_copyable_int> >;
|
||||
|
||||
namespace container_detail {
|
||||
|
||||
template class slist_const_iterator
|
||||
<int, intrusive_slist_type< std::allocator<int> >::container_type::iterator >;
|
||||
template class slist_iterator
|
||||
<int, intrusive_slist_type< std::allocator<int> >::container_type::iterator>;
|
||||
|
||||
}
|
||||
|
||||
}}
|
||||
|
||||
typedef slist<int> MyList;
|
||||
|
||||
@@ -41,10 +41,10 @@ template class stable_vector<test::movable_and_copyable_int,
|
||||
|
||||
namespace stable_vector_detail{
|
||||
|
||||
template class iterator< int, int &, int *>;
|
||||
template class iterator< int, const int &, const int *>;
|
||||
template class iterator<int*, false>;
|
||||
template class iterator<int*, true >;
|
||||
|
||||
}
|
||||
} //namespace stable_vector_detail{
|
||||
|
||||
}}
|
||||
|
||||
|
||||
@@ -43,8 +43,8 @@ namespace container_detail {
|
||||
|
||||
#ifndef BOOST_CONTAINER_VECTOR_ITERATOR_IS_POINTER
|
||||
|
||||
template class vector_const_iterator<int*>;
|
||||
template class vector_iterator<int*>;
|
||||
template class vec_iterator<int*, true >;
|
||||
template class vec_iterator<int*, false>;
|
||||
|
||||
#endif //BOOST_CONTAINER_VECTOR_ITERATOR_IS_POINTER
|
||||
|
||||
|
||||
Reference in New Issue
Block a user