Answers for "c++ std::find with lambda"

C++
0

c++ std::find with lambda

std::find_if(
    myVector.begin(), myVector.end(),
    [&toFind](const MyStruct& x) { return x.m_id == toFind.m_id;});
Posted by: Guest on August-09-2020

Browse Popular Code Answers by Language