I need help (explanation and examples) in understanding the copy algorithm.
Can the InputIterators be incremented likeCode:copy(InputIterator sourceBeg, InputIterator sourceEnd, OutputIterator destBeg)
This algorithm only works with/on vectors, correct?Code:copy(InputIterator sourceBeg+1, InputIterator sourceEnd, OutputIterator destBeg)
Would you need to declare your input and output iterators like this:
Code:string::iterator start=source.begin(); string::iterator end=source.end(); string::iterator begin=dest.begin();



LinkBack URL
About LinkBacks



I used to be an adventurer like you... then I took an arrow to the knee.