Check out example codes for "c++ find with predicat". It will help you in understanding the concepts better.

Code Example 1

if(find_if(table.begin(), table.end(), [&new_id](const entry &arg) { 
                                           return arg.first == new_id; }) != ...)

Learn ReactJs, React Native from akashmittal.com