Implemented SCARY iterators for all containers

[SVN r85308]
This commit is contained in:
Ion Gaztañaga
2013-08-11 21:36:19 +00:00
parent d91dc0059b
commit 3d249fa728
14 changed files with 559 additions and 792 deletions
-2
View File
@@ -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
View File
@@ -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>;
}
-9
View File
@@ -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;
+3 -3
View File
@@ -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{
}}
+2 -2
View File
@@ -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