#include
#include
#include
#include
#include
#include
#include
using namespace std;
int main()
{
list driver_list;
vector vec;
deque deq;
driver_list.insert(driver_list.end(), "AAA");
driver_list.insert(driver_list.end(), "BBBB");
driver_list.insert(driver_list.end(), "CCCCC");
deq.insert(deq.end(), "AAA");
deq.insert(deq.end(), "DDDDDD");
pair::iterator, list::iterator> pair1 = mismatch(deq.begin(), deq.end(),driver_list.begin());
if (pair1.first != deq.end())
cout << "First disagreement in deq and driver_list:\n "
<< *(pair1.first) << " and " << *(pair1.second)
<< endl;
return 0;
}
/*
First disagreement in deq and driver_list:
DDDDDD and BBBB
*/