#include
#include
#include
using namespace std;
template
bool IsEven (const elementType& number)
{
return ((number % 2) == 0);
}
int main ()
{
vector v;
for (int nNum = -9; nNum < 10; ++ nNum)
v.push_back (nNum);
vector ::const_iterator i;
for ( i = v.begin (); i != v.end (); ++ i )
cout << *i << ' ';
cout << v.size () << "' elements" << endl;
// Use count to determine the number of '0's in the vector
size_t nNumZeroes = count (v.begin (),v.end (),0);
cout << "Number of instances of '0': " << nNumZeroes << endl << endl;
cout << "Searching for an element of value 3 using find: " << endl;
return 0;
}