Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ std::find with lambda

std::find_if(
    myVector.begin(), myVector.end(),
    [&toFind](const MyStruct& x) { return x.m_id == toFind.m_id;});
 
PREVIOUS NEXT
Tagged: #lambda
ADD COMMENT
Topic
Name
6+1 =