Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

vector iterator in c++

vector<int>::iterator ptr;
for (ptr = ar.begin(); ptr < ar.end(); ptr++)
{
//do something at (*ptr)
}
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #vector #iterator
ADD COMMENT
Topic
Name
1+2 =