When using an STL list, how can I check if a certain variable happens to just be in there? Basically, given this already:
#include <iostream>
#include <list>
#include <iterator>
using namespace std;
list<int> integer_list;
I need a way to code this in C++:
if(x is in integer_list){
do this }