DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR CPP
c++ find element in vector
auto it = find(vec.begin(),vec,end(), item)! if(it != vec.end()){ int index = it - vec.begin(); }
PREVIOUS
NEXT
Tagged:
#find
#element
#vector
ADD COMMENT
Topic
COMMENT
Name
4+6 =
Submit