// deque::begin
#include
#include
using namespace std;
int main ()
{
deque
deque
int num=3;
for (int i=1; i<=5; i++) mydeque.push_back(i);
cout << "mydeque contains:";
it = mydeque.begin();
while (it != mydeque.end())
if(*it == num)
cout << " " << *it++;
cout << endl;
return 0;
}