cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Vector reindex
Vector reindex
Apr 29, 2012 at 10:12pm UTC
siloan
(44)
Hi there, i have a stl vector and after deleting a element from it(for example 2) with erase the index remain 0 1 3 4 5, php has a function for this - array_values but here in c++ what should i do?
Last edited on
Apr 29, 2012 at 10:12pm UTC
Apr 29, 2012 at 10:27pm UTC
kbw
(9488)
http://en.wikipedia.org/wiki/Erase-remove_idiom
Topic archived. No new replies allowed.