++


find_first_of() - 2


<< "&s_array[2]:\t" << &s_array[2] << "\n\t"

<< "&found_it:\t" << found_it << "\n\n";

vector< string, allocator > svec( s_array, s_array+6);

vector< string, allocator > svec_find( to_find, to_find+2 );

// "oo" -- svec.end()-2

vector< string, allocator >::iterator found_it2;

 

found_it2 = find_first_of(

svec.begin(), svec.end(),

svec_find.begin(), svec_find.end(),

equal_to<string>() );

 

// :

// : oo

// &svec.end()-2: 0x100067b0

// &found_it2: 0x100067b0

 

if ( found_it2 != svec.end() )

cout << " : " << *found_it2 << "\n\t"

<< "&svec.end()-2:\t" << svec.end()-2 << "\n\t"

<< "&found_it2:\t" << found_it2 << "\n";

}




- -  - -  - -