522 int myints1[]= |
522 int myints1[]= |
523 { |
523 { |
524 10,20,30,40,50,60,70 |
524 10,20,30,40,50,60,70 |
525 }; |
525 }; |
526 vector<int> myvector (myints,myints+8) ,myvector1(myints1,myints1+7); |
526 vector<int> myvector (myints,myints+8) ,myvector1(myints1,myints1+7); |
527 vector<int>::iterator it,it2; |
527 vector<int>::iterator it; |
528 //cout<<""; |
528 //cout<<""; |
529 #if STDCPP_OOM |
529 #if STDCPP_OOM |
530 User::__DbgSetAllocFail(FALSE,RHeap::EDeterministic,1); |
530 User::__DbgSetAllocFail(FALSE,RHeap::EDeterministic,1); |
531 |
531 |
532 #endif |
532 #endif |
1579 int array4[4] ={30,40,50,60 }; //not found iterator |
1579 int array4[4] ={30,40,50,60 }; //not found iterator |
1580 |
1580 |
1581 |
1581 |
1582 vector <int> v1(array1,array1+12), v2(array2,array2+3),v3(array3,array3+4); |
1582 vector <int> v1(array1,array1+12), v2(array2,array2+3),v3(array3,array3+4); |
1583 vector<int> v4(array4,array4+4); |
1583 vector<int> v4(array4,array4+4); |
1584 vector <int>::iterator Iter1, Iter2,Iter3 ,Iter4; |
1584 // vector <int>::iterator Iter1, Iter2,Iter3 ,Iter4; |
1585 |
1585 |
1586 |
1586 |
1587 |
1587 vector <int>::iterator result1; |
1588 |
1588 |
1589 |
1589 |
1590 vector <int>::iterator result1,result2; |
|
1591 //cout<<""; |
1590 //cout<<""; |
1592 #if STDCPP_OOM |
1591 #if STDCPP_OOM |
1593 User::__DbgSetAllocFail(FALSE,RHeap::EDeterministic,1); |
1592 User::__DbgSetAllocFail(FALSE,RHeap::EDeterministic,1); |
1594 |
1593 |
1595 #endif |
1594 #endif |
1596 result1 = find_end( v1.begin( ), v1.end( ), v3.begin( ), v3.end( ) ); |
1595 result1 = find_end( v1.begin( ), v1.end( ), v3.begin( ), v3.end( ) ); |
1597 |
1596 |
1598 result2 = find_end ( v1.begin( ), v1.end( ), v4.begin( ), v4.end( ) ); |
1597 // result2 = find_end ( v1.begin( ), v1.end( ), v4.begin( ), v4.end( ) ); |
1599 #if STDCPP_OOM |
1598 #if STDCPP_OOM |
1600 User::__DbgSetAllocFail(FALSE,RHeap::ENone,1); |
1599 User::__DbgSetAllocFail(FALSE,RHeap::ENone,1); |
1601 |
1600 |
1602 #endif |
1601 #endif |
1603 |
1602 |
1727 User::__DbgSetAllocFail(FALSE,RHeap::EDeterministic,1); |
1726 User::__DbgSetAllocFail(FALSE,RHeap::EDeterministic,1); |
1728 |
1727 |
1729 #endif |
1728 #endif |
1730 test_variable1 = *max_element(test_array1,test_array1 + 8); |
1729 test_variable1 = *max_element(test_array1,test_array1 + 8); |
1731 test_variable2 = *max_element(test_array2,test_array2+5); |
1730 test_variable2 = *max_element(test_array2,test_array2+5); |
1732 int test_variable3 =*max_element(test_array1,test_array1 + 10); |
1731 int test_variable3 =*max_element(test_array1,test_array1 + 7); |
1733 |
1732 |
1734 #if STDCPP_OOM |
1733 #if STDCPP_OOM |
1735 User::__DbgSetAllocFail(FALSE,RHeap::ENone,1); |
1734 User::__DbgSetAllocFail(FALSE,RHeap::ENone,1); |
1736 |
1735 |
1737 |
1736 |