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(); }
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#find
#element
#vector
ADD COMMENT
Topic
COMMENT
Name
1+3 =
Submit