#include <iostream>
#include <deque>
using std::deque;
using std::cout;
using std::endl;
int main()
{
deque<int> dq = { 1, 3, 8, 23, 88, 12, 99, 7 };
deque<int>::const_iterator pos;
pos = find(dq.cbegin(), dq.cend(), 88);
if (pos != dq.end()) {
cout << "found : " << *pos << endl;
}
else {
cout << "not found" << endl;
}
}
/*
run:
found : 88
*/