Updated shared_container_iterator to use the new iterator adaptors library.

Updated the documentation and examples as well to reflect the changes.


[SVN r19535]
This commit is contained in:
Ronald Garcia
2003-08-11 16:29:47 +00:00
parent 242634b3fc
commit bb6a6272e1
3 changed files with 58 additions and 69 deletions
+3 -4
View File
@@ -11,10 +11,9 @@
#include <vector>
typedef boost::shared_container_iterator_generator< std::vector<int> >::type
function_iterator;
typedef boost::shared_container_iterator< std::vector<int> > iterator;
std::pair<function_iterator,function_iterator>
std::pair<iterator,iterator>
return_range() {
boost::shared_ptr< std::vector<int> > range(new std::vector<int>());
range->push_back(0);
@@ -30,7 +29,7 @@ return_range() {
int main() {
function_iterator i,end;
iterator i,end;
boost::tie(i,end) = return_range();