int main()
{
int ia[8] = { 1,1,2,3,4,5,13,21 };
vector<int>veci( ia,ia+8 );
double da[6] = { 1.5,2.0,2.5,3.0,3.5,4.0 };
vector<double> vecd( da,da+6 );
string sa[4] = { "pooh","piglet","eeyore","tigger" };
vector<string> vecs( sa,sa+4 );
int *pi = find( beginme(veci),endme(veci),veci[3] );
double *pd = find( beginme(vecd),endme(vecd),vecd[3] );
string *ps = find( beginme(vecs),endme(vecs),vecs[3] );
cout << "The int element is : " << *pi << ’
’
<< "The double element is : " << *pd << ’
’
<< "The string element is : " << *ps << ’
’ ;
return 0;
}