I need to create a function that turns a string into a vector of characters with each character holding a place in the vector. Anyone know how I can do this?
so...
s.begin()
and
s.end()
represent the first and last characters in the string?
No. s.end() - 1 is the iterator to the last character. s.end() is the iterator to the imaginary character after the last character.
This is the convention, that the algorithms in the algorithm header follow for ranges: [ begin, end ) -- end is excluded.
This is the same for every other container, not just std::vector.