Skip to content

Instantly share code, notes, and snippets.

std::list<int> list;
std::list<int>::iterator pos;
pos = list.begin();
list.insert(it, 1024);
pos = std::find(list.begin(), list.end(), 1024);
*pos; // get