forked from boostorg/utility
changed int* to std::vector<int>::iterator
[SVN r9178]
This commit is contained in:
@@ -194,7 +194,8 @@ of pointers.
|
|||||||
// Fill "numbers" array with [0,N)
|
// Fill "numbers" array with [0,N)
|
||||||
std::copy(boost::make_counting_iterator(0), boost::make_counting_iterator(N),
|
std::copy(boost::make_counting_iterator(0), boost::make_counting_iterator(N),
|
||||||
std::back_inserter(numbers));
|
std::back_inserter(numbers));
|
||||||
std::vector<int*> pointers;
|
|
||||||
|
std::vector<std::vector<int>::iterator> pointers;
|
||||||
|
|
||||||
// Use counting iterator to fill in the array of pointers.
|
// Use counting iterator to fill in the array of pointers.
|
||||||
std::copy(boost::make_counting_iterator(numbers.begin()),
|
std::copy(boost::make_counting_iterator(numbers.begin()),
|
||||||
|
@@ -32,7 +32,8 @@ int main(int, char*[])
|
|||||||
// Fill "numbers" array with [0,N)
|
// Fill "numbers" array with [0,N)
|
||||||
std::copy(boost::make_counting_iterator(0), boost::make_counting_iterator(N),
|
std::copy(boost::make_counting_iterator(0), boost::make_counting_iterator(N),
|
||||||
std::back_inserter(numbers));
|
std::back_inserter(numbers));
|
||||||
std::vector<int*> pointers;
|
|
||||||
|
std::vector<std::vector<int>::iterator> pointers;
|
||||||
|
|
||||||
// Use counting iterator to fill in the array of pointers.
|
// Use counting iterator to fill in the array of pointers.
|
||||||
std::copy(boost::make_counting_iterator(numbers.begin()),
|
std::copy(boost::make_counting_iterator(numbers.begin()),
|
||||||
|
Reference in New Issue
Block a user