On 6/15/2015 9:28 AM, Paul wrote:
> I wrote
> std::vector<int> vect = {-1, 0, 1, 2, 3, -4, 4};
>
> std::sort(vect.begin(), vect.end());
>
>
> Using codeblocks, I put my cursor in the word begin and it reads
> const_iterator std::vector::begin()
>
> Surely, this is wrong? vect.begin() is a non-const iterator, isn't
> it? Or am I missing something? Or is codeblocks just generally
> unreliable?
There are two versions of 'vector::begin' member function. Perhaps
codeblocks doesn't know which one to show and picks the apparently wrong
one...
V
--
I do not respond to top-posted replies, please don't ask