I am trying to use std::find_if to find an object that matches some criteria. Consider the following:
struct MyStruct { MyStruct(const int & id
Do as following:
std::find_if(myVector.begin(), myVector.end(), [&toFind] (const auto &ele) { return ele.m_id == toFind.m_id}; );