Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vector<Type>::iterator nth = v.begin() + index;
- std::vector<>::iterator it = ( v.begin() + index );
- std::vector<>::iterator it = v.begin();
- std::advance( it, index );
- vector<int>::iterator i = L.begin();
- advance(i, 2);
- int main()
- {
- void foo(const char *);
- sdt::vector<char> vec;
- vec.push_back('h');
- vec.push_back('e');
- vec.push_back('l');
- vec.push_back('l');
- vec.push_back('o');
- vec.push_back('/0');
- foo(&vec[0]);
- }
- vector.insert(pos, &vec[first_index], &vec[last_index]);
Add Comment
Please, Sign In to add comment