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